Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualAndreas Jonsson

Posted 30 December 2012 - 08:36 AM

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


#3FDsagizi

Posted 28 December 2012 - 02:17 AM

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


#2FDsagizi

Posted 28 December 2012 - 02:16 AM

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

#1FDsagizi

Posted 28 December 2012 - 02:15 AM

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

 


PARTNERS