Posts Tagged ‘ISO’

WG21 Meeting Notes – Bristol

Saturday, April 20th, 2013

I’m currently sitting in the ISO C++ Standards Committee (WG21) meeting in Bristol, and we’ve just voted a couple of things into the C++ standard that I think are rather nice:

Binary Literals:

I can now write:

const int five = 0b0101;

Return Type Deduction for Normal Functions

This is really nice: the compiler can now deduce the return type of a function rather than my having to specify it, so instead of writing:


some_really_long_typename f()
{
return some_really_long_typename();
}

I can now write:


auto f()
{
return some_really_long_typename();
}

A little thing but it helps. The deduction, of course, works on many more complex cases that this, but I’m back to paying attention ;)