This code compiles with Visual C++ 11 and runs as expected on Windows 7 but fails to compile using either MinGW 4.7.0 on Windows 7 or gcc 4.8.0 on Linux. Compiling with
The reason why GCC rejects this code is simple: libstdc++ doesn't support yet.
The C++11 support status page confirms this:
22.5 Standard code conversion facets N