problem with DefineEngineFunction() engineAPI.h
by Christopher Wesley Joyner · in Technical Issues · 09/30/2012 (6:20 pm) · 1 replies
I have this compile error, "error C2039: 'ArgumentToValue' : is not a member of 'EngineTypeTraits<T>"
ArgumentToValue does exists.
template< typename T >
struct _EngineTypeTraits
{
// Default type traits corresponding to the semantics of class types.
typedef T Type;
typedef T* ValueType;
//typedef typename Type::SuperType SuperType;
typedef typename Type SuperType;//Admin edit
typedef T* ArgumentValueType;
typedef T* ReturnValueType;
typedef T* DefaultArgumentValueStoreType;
typedef ReturnValueType ReturnValue;
static ValueType ArgumentToValue( ArgumentValueType val ) { return val; }
static const EngineTypeInfo* const TYPEINFO;
};
template< typename T > const EngineTypeInfo* const _EngineTypeTraits< T >::TYPEINFO = &T::_smTypeInfo;
template<>
ArgumentToValue does exists.
template< typename T >
struct _EngineTypeTraits
{
// Default type traits corresponding to the semantics of class types.
typedef T Type;
typedef T* ValueType;
//typedef typename Type::SuperType SuperType;
typedef typename Type SuperType;//Admin edit
typedef T* ArgumentValueType;
typedef T* ReturnValueType;
typedef T* DefaultArgumentValueStoreType;
typedef ReturnValueType ReturnValue;
static ValueType ArgumentToValue( ArgumentValueType val ) { return val; }
static const EngineTypeInfo* const TYPEINFO;
};
template< typename T > const EngineTypeInfo* const _EngineTypeTraits< T >::TYPEINFO = &T::_smTypeInfo;
template<>
About the author
Associate David Wyand
Gnometech Inc.
Thanks!
- Dave