i have a map of classes in hscript, i can use any of classes from the map in the script. I want to set some classes from cpp
package (Pointer for example) but this always results into error like this one:
error: no matching function for call to 'ClassOf'
HXLINE( 100) this->setVariable(HX_("Pointer",9d,e8,72,1e),::hx::ClassOf< ::cpp::Pointer >());
i set like that:
public function setVariable(name:String, val:Dynamic)
{
hscript.variables.set(name, val);
}
setVariable('Pointer', cpp.Pointer);
where hscript.variables
is a map of those classes that can be used in script… maybe some untyped _cpp_()
can solve this?