Migrating from Boost 1.35 to TR1
Just porting some stuff over to TR1, here some things that you need to take care of:
- For easy migration, prefer to use the
boost/tr1/
headers, as they provide a fall-back to Boost if TR1 is not available. std::tr1::function
has noempty ()
function, useif (function_object)
instead.std::tr1::tuple
has noget
member function, usestd::tr1::get<0> (tuple_instance)
instead. For some reason or another, no ADL is possible here.boost::bind
provides the placeholders_1
,_2
, etc., whilestd::tr1::bind
doesn’t – I’d stick withboost::bind
as the_1
placeholders are very convenient.- There is no
scoped_array
,shared_array
in<memory>
– use Boost for this.