• Articles
  • Visual Studio 2008 / 2010 GOTCHA's
May 25, 2011 (last update: Jul 8, 2011)

Visual Studio 2008 / 2010 GOTCHA's

Score: 3.5/5 (255 votes)
*****
1) Copying files between projects in the same solution within the IDE DOES NOT ACTUALLY COPY the files. Any changes made to any of the "shortcuts" will affect the file(s) that you were planning on not modifying. In order to copy the files you will need to do it with the actual file-system.

2) Even though VS2010 has installs the <initializer_list> header, it doesn't work and yields output similiar to this:
c:\program files\microsoft visual studio 10.0\vc\include\initializer_list(13): error C2143: syntax error : missing ';' before ''template<''

Microsoft says:
As you probably know, we license our C++ Standard Library implementation from Dinkumware, whose master sources target many compilers. When we updated our implementation to the latest version of their master sources, we picked up their support for initializer lists in addition to rvalue references, forward_list, and so forth. Because we decided against implementing initializer lists in the VC10 compiler (due to time constraints, we picked 6 Core Language features to implement in VC10), I stripped out the support for initializer lists that had made it into our headers (it was protected by a macro that was never defined). Unfortunately, I simply forgot that we had picked up <initializer_list> itself. Oops.