I'm having some problems with the type "auto". So I'm wondering if I am using a gcc version previous to the standard C++11.
I checked the the gcc version on my computer:
% gcc -v
> gcc version 4.6.4
But I don't find what standard follow this version:
- C++98 (ISO/IEC 14882:1998) is the first edition.
- C++03 (ISO/IEC 14882:2003) is the second edition and often considered a bugfix, but it has many changes.
- C++11 is the third edition.
...
Note that the -std=c++11 flag were not available until GCC 4.7 so you'll have to use -std=c++0x instead. If you are serious about using C++11 you probably want to use a later version of GCC.