
1 Nov
2007
1 Nov
'07
6:31 p.m.
Thorsten Ottosen: ...
I would be satisfied with a function
template< class Return, class T > boost::function_obj_ref( const T& );
used like
algo( first, last, boost::function_obj_ref<bool>( my_heavy_object ) );
boost::bind<bool>( ref( my_heavy_object ), _1, _2, ... ) can be used for that, and so can function<bool(...)>( ref(my_heavy_object) ). This is partially why we don't feel much pressure to add operator() to reference_wrapper. The syntax is more burdensome though.