Hi!
if i change this code ( Val &in )
r=en->RegisterObjectBehaviour("Val", asBEHAVE_CONSTRUCT, "void f(const Val &in )",asFUNCTION(CopyConstructVal), asCALL_CDECL_OBJLAST); assert( r >= 0 );
to ( Val & )
r=en->RegisterObjectBehaviour("Val", asBEHAVE_CONSTRUCT, "void f(const Val & )",asFUNCTION(CopyConstructVal), asCALL_CDECL_OBJLAST); assert( r >= 0 );
i have error: There is no copy operator for the type 'Val' available.
on this script code:
Val GetVal()
{
Val ret = ...
return ret; // error.
}
At revision: 1524