@:include("cc_orientation.h")@:native("cc::Orientation")extern class Orientation{ @:native("cc::Orientation") static function create():Orientation;}
class Main { static function main() { var array = new Array<Orientation>(); array.push(Orientation.create()); }}
./src/Test2.cpp(50): error C2664: 'int Array_obj<ELEM_>::push(ELEM_)': cannot convert argument 1 from 'cc::Orientation' to 'Dynamic' with [ ELEM_=Dynamic ]./src/Test2.cpp(50): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
@:include("vector")@:native("std::vector")extern class StdVector<T> { }
@:include("vector")
extern class StdVector<T> {
// haxe defs go here, with <T>
}
@:native("std::vector<MyClass>")
extern class MyClassVector extends StdVector<MyClass> { /* Defs are common - maybe a specific create call */ }