This isn't supported in the released version of Visual C++ 2012.
There's a preview (CTP) that does have partial support for initializer lists here: http://www.microsoft.com/en-us/download/details.aspx?id=35515. But this particular code won't work even in that preview because the STL hasn't been updated to use initializer lists. This will work fine is Visual Studio 2013. I hope it may help.