Posts Tagged ‘vs2012’

C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel

It’s been more than half a year since my last comparison of the C++11 support across different compilers. This time I’d like to see how different compilers stack up based on the documentation for the pre-release versions of these compilers.

The next release of GCC is 4.8 and the upcoming version of Clang is 3.3. If you use Visual Studio 2012, you can install an experimental CTP update released in November 2012 to get additional C++11 features.

I’ve also thrown in v.13.0 of Intel’s C++ compiler out …

Read More
 

C++11 Rocks Visual Studio 2012 Edition is out of beta

The Visual Studio 2012 edition of C++11 Rocks is complete and out of beta. There are tons of cool features added into this version of Visual Studio which you could be using to write code that runs faster and has fewer bugs: concurrency support, time utilities, range-based for loop – just to name a few.

I had two main goals when writing the book: providing succinct explanations for all aspects of C++11 in Visual Studio, and saving readers time on research and trial & error. Just in the concurrency support chapters, I’ve identified 17 bugs and other situations …

Read More
 

An introduction to the TR2 filesystem library in Visual Studio 2012

Visual Studio 2012 includes the filesystem library. It isn’t part of the C++11 standard but it’s one of the proposals for TR2. The proposal is based on the library included in boost.

The library provides a convenient (and cross platform, if supported by compilers) interface for file & directory traversing and manipulation, as well as querying filesystem information such as file sizes and disk space.

The main components of the library are:

path objects
directory iterators
free functions

Path objects encapsulate filesystem paths and provide convenient ways of assembling paths and extracting their components.

Directory iterators allow you to iterate over directory contents, both recursively …

Read More
 

23 C++11 bugs you no longer need to worry about in VS2012

Visual Studio 2012 has fixed a lot of bugs in C++11 features which were present in Visual Studio 2010.

Of course, VS2010 was released before the C++ standard was finalised. Now that the standard is final, Visual Studio doesn’t have to follow a moving target, and its compliance with the standard is getting a lot better.

This means that you can drop a lot of the workarounds or start using features you’ve previously avoided. Your code can be cleaner and more straightforward.

Let’s have a look at some of the bugs which are now history…
Lambda bugs
Using lambdas in the previous version of Visual …

Read More
 

16 C++11 additions in VS2012 for cleaner & faster code

Some people were disappointed with the level of C++11 support in Visual Studio 2012.

Let’s look on the bright side though. There are still lots of useful C++11 additions you can use to make your code cleaner and faster.

Language support has been improved in little ways. More significantly, the standard library is now meant to be complete (minus the stuff relying on non-implemented language features).

Here’s an overview of the C++11 additions…

Language additions and changes

1 The most visible new language feature is the range based for-loop. It made it into the release quite unexpectedly at the last …

Read More
 
  • Page 1 of 2
  • 1
  • 2
© 2013 Aotea Studios Ltd
The C++ Rocks website and the C++11 Rocks Series are products of Aotea Studios Ltd