1 Aug
2011
1 Aug
'11
8:23 p.m.
template<typename Range>
typename range_iterator
::type some_function(Range&& r) { ... } Could the range metafunctions be modified to accept range reference parameters and remove the reference themselves?
allthough we should probably be careful here; maybe its better just to say template< class R > auto some_fun( R&& r ) -> decltype(boost::begin(r)); -Thorsten