With XCode 5.1.1 I had to change the C++ Standard Library option to compile...
Rail
Compiles fine for me.. What was the problem?
I don't think you can compile c++11 with gnu libstdc++ (the one that ships with osx is really old)
Have you tried to change C++ dialect to non c++11?