registration of the method:
r = engine->RegisterObjectMethod(type, "const uint32& get_id() const", asMETHOD(T, getId), asCALL_THISCALL); assert(r >= 0);
now in AS I try this:
obj.id == 1;
it's actually nested in a condition but you know what I mean. the build returns: line 1: No conversion from 'uint&' to 'uint' available.
I don't get it. why isn't it possbile to compare a const reference with a simple value? Since it's a primitive type I don't think I've done anything wrong here. Please help
EDIT:
uint a = obj.id;
works[Edited by - mk1x86 on August 26, 2010 6:55:40 AM]