Hi
i ran to this problem that I cannot figure out what's causing it. I'm using visual studio 2010 express (C++) and first this code seeme'd to work but running clean-build ends up in error.
code:
template<class Archive,class EntClass> inline
void loadEntityConstructData(Archive & ar, EntClass * obj, const unsigned int version)
{
Point2F pos;
F32 angle;
std::string data;
EntityData *entData = 0;
::new(obj)EntClass(*entData,pos,angle);
}
Gives error:
Error 220 error C2061: syntax error : identifier 'obj'
the code above is called from another template function:
template<class Archive> inline void load_construct_data(Archive & ar, classname * t, const unsigned int version)
{ loadEntityConstructData(ar,t,version); }
maybe someone knows what's wrong?
thanks