visual c++ - Unforgiving GCC C++ compiler -
ms vs x86 compiler has no problem following definitions, gcc (arm) complains. gcc dumb or msvs_x86 clever?
bool checkpointinside(const ciwvec2& globalpoint) { return checkpointin(globalpoint, ciwvec2()); }; /// error: no matching function call 'fair::sprite::checkpointin(const ciwvec2&, ciwvec2)' bool checkpointin(const ciwvec2& globalpoint, ciwvec2& localpoint) { return false; };
according c++ standard, cannot bind rvalue non-const reference. microsoft compiler has evil extension allows this, however. g++ correct not accept program.
Comments
Post a Comment