This compiles in Visual Studio, but why not in Xcode?
class A()
{};
someMethod(A& a);
someMethod(A()); //error: no matching function call in XCode only :(
Is this a bad shape? It seems annoying to write the following every time:
A a;
someMethod(a); //successful compile on Xcode
Am I missing something? I am not very experienced, so thanks for any help!
Jorge source
share