Hi
I supposedly have MinGW version 4.8.1 (gcc --version yields that version) and I'm using NetBeans as an IDE. However, when I try to compile my code, the following line poses an issue:
auto iElement = find_if(vecIntegers.begin(), vecIntegers.end(), myObj);
and the complaint is that iElement does not name a type. When I replace the line with
std::vector<int>::const_iterato iElement = ...;
the program compiles.
BUT according to
http://gcc.gnu.org/gcc-4.8/cxx0x_status.html, MinGW 4.8.x is supposedly supposed to support the auto typed variables
Anyone have any idea why auto doesn't seem to work?