Category Archives: Programming

Rule of Zero

Interesting take on the need or otherwise to write move constructors by R. Martinho Fernandes (Flaming Dangerzone) :-

So, we have arrived at the Rule of Zero (which is actually a particular instance of the Single Responsibility Principle):

Classes that have custom destructors, copy/move constructors or copy/move assignment operators should deal exclusively with ownership. Other classes should not have custom destructors, copy/move constructors or copy/move assignment operators.

Leave a comment

Filed under C++

Stephan Lavavej Video – VS2012 C++ November CTP

Introductory video on the Visual Studio 2012 C++ Compiler November CTP (download the CTP here):

A special episode in which Stephan takes a look at the latest C++11 features that were just added to the Visual C++ compiler:

Variadic templates
Raw string literals
Explicit conversion operators
Default template arguments for function templates
Delegating constructors
Uniform initialization

Click to watch the video

Leave a comment

Filed under C++, Video

Herb Sutter Video – (Not your Father’s) C++

Another MSDN Channel 9 video from Herb Sutter:

What makes ISO C++11 “feel like a new language”? What things that we know about past C++ do we need to unlearn? Why is C++ designed the way it is – historically, and in C++11? Finally, what is the difference between managed and native languages anyway, and when is each applicable? This talk gives an overview and motivation of modern C++ and why it’s clean, safe, and fast – as clean to code in and as type-safe as any modern language, and more than ever the king of “fast.”

Click to watch the video.

Leave a comment

Filed under C++, Video

Visual Studio 2012 – Look and Feel

When I first installed Visual Studio 2012, I was taken aback at how awful the user interface looked and felt (and it seems thousands of other people had the same opinion). Fortunately, several articles have appeared explaining how to revert VS2012 to a similar look to that supported by VS2010:

Visual Studio 2010

Visual Studio 2012 Revamped

I wouldn’t normally go to this amount of effort to customise an application, but in my eyes the Visual Studio team got this so wrong that I had no choice. Furthermore, I don’t think VS2012 gave us so much more than VS2010 in terms of C++11 standard compliance that it was worth the effort! However, Herb Sutter has announced a VS2012 upgrade to provide several sort after C++11 features – hopefully that this upgrade will make it worth the pain.

Leave a comment

Filed under Programming

IntelliTrace / Historical Debugging in Visual Studio

I just read a tweet from John Robbins about this feature that I’d never encountered in Visual Studio 2010 onwards (probably because it’s only available in VS2010 Ultimate and VS2012 Ultimate) – IntelliTrace/Historical Debugging.  This looks really useful for debugging – you can roll back and forward in time without having to continually re-run your program trying to catch the exact sequence of events that led to a bug.

Leave a comment

Filed under Programming