[vos-d] C++ TR1

Reed Hedges reed at interreality.org
Sun Jun 11 22:04:12 EDT 2006


An extension to the C++ language and standard library is soon to be
accepted. It will bring a few useful things.

Article Part 1: http://www.ddj.com/dept/cpp/187203727
Article Part 2: http://www.ddj.com/dept/cpp/188700816


Some useful tidbits it mentions that might come out of TR1 are:
 * Constructor Chaining (within the class), like Java.
 * Variable arguments in Macros (No more FOO(), FOO1(arg), FOO2(a1, a2),
etc.).
 * You can finally say std::set<std::pair<int, int>> instead of
std::set<std::pair<int, int> >.
 * Some Boost-like stuff in the STL including smart pointers.
 * Automatic type determination (e.g. for iterators:  for(auto i =
list.begin();...) instead of for (std::list< blah blah blah< blah blah
blah< blah blah > > blah blah>::const_[or maybe not?]iterator i = ...).



More information about the vos-d mailing list