From c1aefec1e30702d98a03981937c48753ddd1d357 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 18 Oct 2012 03:32:00 +0000 Subject: [PATCH] - Redo one GCC fix to make it compatible with VC++. SVN r3894 (scripting) --- src/dobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dobject.h b/src/dobject.h index 20426c72c..783b8bb5b 100644 --- a/src/dobject.h +++ b/src/dobject.h @@ -82,7 +82,7 @@ class PClassActor; #define RUNTIME_CLASS_CASTLESS(cls) (cls::RegistrationInfo.MyClass) // Passed a native class name, returns a PClass representing that class #define RUNTIME_CLASS(cls) ((cls::MetaClass *)RUNTIME_CLASS_CASTLESS(cls)) // Like above, but returns the true type of the meta object -#define RUNTIME_TEMPLATE_CLASS(cls) ((class cls::MetaClass *)RUNTIME_CLASS_CASTLESS(cls)) // RUNTIME_CLASS, but works with templated parameters on GCC +#define RUNTIME_TEMPLATE_CLASS(cls) ((typename cls::MetaClass *)RUNTIME_CLASS_CASTLESS(cls)) // RUNTIME_CLASS, but works with templated parameters on GCC #define NATIVE_TYPE(object) (object->StaticType()) // Passed an object, returns the type of the C++ class representing the object // Enumerations for the meta classes created by ClassReg::RegisterClass()