How can I register const method of class ?

Started by
2 comments, last by zopenge 16 years, 1 month ago
class A { float Do( ) const; }; RegisterObjectMethod( "A", "float Do() const", asMETHODPR( A, Do, (void), float ), asCALL_THISCALL ); how to register Do() method ? the compiler always tell me that error C2440: 'type cast' : cannot convert Thanks !
Advertisement
Oh, Sorry, it's my mistake ~~ really sorry , I had fixed it .


So shy .... :(

RegisterObjectMethod( "A", "float Do() const", asMETHODPR( A, Do, (void) const, float ), asCALL_THISCALL );
any way , thanks

This topic is closed to new replies.

Advertisement