I\'m writing with visual c++ and when I compile this error occures:
C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\Win32\\Microsoft.Cpp.Wi
I get this bug in v110 (Visual studio 2012)-Compiler with the following code, which contains a wrong for-based loop.
class A
{
int b;
};
int main(int argc, char* argv[])
{
A inst;
for (auto &i : inst)
{
}
return 0;
}
PS: v140 (Visual Studio 2015) shows the correct error:
error C3312: no callable 'begin' function found for type 'A'
error C3312: no callable 'end' function found for type 'A'