News for hackers. Stuff that matters.
Re:Rule of Zero (C++) by yannickt on Friday November 23, 2012 @08:13AM (#4822086)
In the OP example, "using" has the same semantics as "typedef". The new syntax emerged from the need for "template typedefs".

http://www.stroustrup.com/C++11FAQ.html#template-alias

Re:Rule of Zero (C++) by jamesaguilar on Friday November 23, 2012 @08:15AM (#4822090)
Oh. I wish they would have just shoehorned it into typedef somehow. I guess they must have had reasons why they couldn't.
Re:Rule of Zero (C++) by snogglethorpe on Friday November 23, 2012 @06:47PM (#4824068)
+1 on that; people intuitively expect template'd typedefs to work until they discover they don't. Oh well.

You can read about the reasoning behind the new syntax here:

http://www.emarcus.org/papers/n1449.pdf

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n148...

Re:Rule of Zero (C++) by pmr_ on Friday November 23, 2012 @10:28AM (#4822469)
The alias syntax has the benefit of not requiring typename everywhere because the syntax requires the right parts to be types and doesn't allow for ambiguities as does typedef. This makes code in dependent contexts a lot easier to read and to write.