Sign in to follow this  
FDsagizi

There is no copy operator for the type 'Val' available.

Recommended Posts

Hi!smile.png

 

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

Edited by Andreas Jonsson

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this