I\'m trying to emulate in C++ a distinct
type from the Nim
programming language. The following example won\'t
compile in Nim because the compiler catches the variables
C++ compilers generally expect the command line option -std=c++11 (or -std=c++0x for slightly older ones, respectively) to activate C++11-support.
not supporting C++11 style at all.
No, it perfectly does. GCC 4.7.2's support can be checked here. To activate some experimental features, pass -std=gnu++11.
And Clang 3.4 actually supports pretty much everything in C++11 and already much out of C++1y.