   [Solved] Registering an overloaded const get-method
  A quick question on how to register a class method that is a get-method for a member which is overloaded and const, using the asMETHODPR macro.My method signatures: //Both methods are exported to ASfloat x() const;  //set Method for membervoid x(float v);  //set method for memberMy registering call so far:engine.registerClassMethod("Vector4","float x(void)", asMETHODPR(Vector4,x,(void),float));The registering call throws an compile error, I think because of the difference in the method signature between the registering call and the actual method signature in the class.Hope anyone can help.Thanks,Thoran[Edited by - Thoran on April 16, 2010 9:04:17 AM]
  I think you need to add const to the function signature.engine.registerClassMethod("Vector4","float x(void) const", asMETHODPR(Vector4,x,(void) const,float));;  Thanks, worked perfectly. Issue solved.Thoran   