Game Development Community

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<>

#1
10/01/2012 (2:48 pm)
Are you trying to compile the engine from the GitHub repo, or have you made changes? What are you using to compile, and on what OS?

Thanks!

- Dave