Change-Id: Id8a5290848b65222cc9ebfe7a6d59f7994096e14
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
return isManaged() && m && m->vtable->isFunctionObject ? reinterpret_cast<const FunctionObject *>(this) : 0;
}
-template<>
-inline FunctionObject *managed_cast(Managed *m)
-{
- return m ? m->as<FunctionObject>() : 0;
-}
-
struct FunctionCtor: FunctionObject
{
return isManaged() && m && m->vtable->isObject ? objectValue() : 0;
}
-template<typename T>
-inline T *managed_cast(Managed *m)
-{
- return m ? m->as<T>() : 0;
-}
-
-template<>
-inline String *managed_cast(Managed *m)
-{
- return m ? m->as<String>() : 0;
-}
-template<>
-inline Object *managed_cast(Managed *m)
-{
- return m ? m->as<Object>() : 0;
-}
-
}