Posts Tagged ‘C++’

C++ concurrency cheatsheet

Parallel execution. It’s where programming is shifting – slowly but inexorably – and, of course, C++11 is on the concurrency bandwagon. Futures/promises, threads, condition variables and so on – it’s all part of the standard library.

I thought it would be handy to have a summary of the concurrency classes and …

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 …

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 …

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 …

Read More

Why does C++ provoke so much emotion?

I often wonder why C++ gets people so worked up. It seems that no C++ discussion can happen without somebody recommending to use another language instead without any regard for practicality. There’s always a person who detests C++ so much that he takes the time to write a long hateful …

Read More

if (arr<:0:> not_eq 0 and not false) – alternative tokens in C++

The line of code in the heading is actually C++. I recently noticed a small section called Alternative tokens in the standard (it’s 2.6, for the curious) which allows this sort of shenanigans.

The following code will probably look slightly alien to you, like a weird C++ knockoff, but it’s …

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