Original Post
Hi,
is there way to get type_info of object which is stored in luabind::object?
void doIt(luabind::object o)
{
std::type_info t = getTypeInfoFunction(o);
cout << t.name() << endl;
if(t == typeid(MyClass))
{
cout << "o is MyClass\n";
}
}
Thanks, Timur.
is there way to get type_info of object which is stored in luabind::object?
void doIt(luabind::object o)
{
std::type_info t = getTypeInfoFunction(o);
cout << t.name() << endl;
if(t == typeid(MyClass))
{
cout << "o is MyClass\n";
}
}
Thanks, Timur.