🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How can I register const method of class ?

Started by
2 comments, last by zopenge 16 years, 4 months 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