Posts Tagged ‘vs2010’

C++11 Rocks Visual Studio 2010 Edition updated

Hot on the heels of the final version of the Visual Studio 2012 edition, I’ve released an update to the VS2010 edition. Here is the change list:

L13: mention that is_copy_constructible type trait isn’t implemented
L14: correct notes about make_signed/make_unsigned behavior – they’re only expected to work with integral types or enums
L16: mention that hash is specialized for bitset by default
L17: list sto* series of functions for converting strings into numbers
L17: Add minmax_element, remove incorrect example for minmax
L21: Clarify the situation with stdint.h/cstdint
L21: Add a section about type_index
L21: bitset and valarray improvements
L21: detail the new …

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 a standard conforming C++ program:

%:include

using namespace std;

int main()…

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