Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflowThis Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

And while it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (Error when initializing a vectorError when initializing a vector).

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

And while it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (Error when initializing a vector).

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

And while it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (Error when initializing a vector).

added 456 characters in body
Source Link
Andy Prowl
  • 127.2k
  • 25
  • 394
  • 455

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

And while it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (Error when initializing a vector).

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

And while it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (Error when initializing a vector).

Rollback to Revision 1
Source Link
Andy Prowl
  • 127.2k
  • 25
  • 394
  • 455

Your code is perfectly legal in C++11. The problem is thatI must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is not completely correctincorrect.

While it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see thisThis Q&A on StackOverflow for an overview of whatclarifies which features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (as pointed out by Mat in the comments) by VC11.

The CTP only upgrades the compilerNotice, not the librarythat uniform initialization is only supported in November 2012's CTP.

Your code is perfectly legal in C++11. The problem is that your assumption:

I am using VS2012 which supports this C++11 feature.

is not completely correct.

While it is true that November 2012's CTP does introduce support for C++11's uniform initialization in the compiler (see this Q&A on StackOverflow for an overview of what features are supported), the implementation of the standard library which is shipped with VS2012 has not been rewritten to make use of those features (as pointed out by Mat in the comments).

The CTP only upgrades the compiler, not the library.

Your code is perfectly legal in C++11. I must conclude you are not using November 2012's CTP, in which case your assumption:

I am using VS2012 which supports this C++11 feature.

is incorrect. This Q&A on StackOverflow clarifies which features are supported by VC11.

Notice, that uniform initialization is only supported in November 2012's CTP.

added 168 characters in body
Source Link
Andy Prowl
  • 127.2k
  • 25
  • 394
  • 455
Loading
added 196 characters in body
Source Link
Andy Prowl
  • 127.2k
  • 25
  • 394
  • 455
Loading
Source Link
Andy Prowl
  • 127.2k
  • 25
  • 394
  • 455
Loading