
23 May
2006
23 May
'06
5:53 p.m.
Thorsten Ottosen wrote:
Updated cvs shows 'boost::size' uses 'operator-' ? I somewhat wonder why 'boost::size' and 'boost::range_size'
you mean just return range_difference<R>::type from size()?
That could be an idea. The only thing I hate is that
vector<int>::size_type s = boost::size( cont );
will know generate a warning.
But 'boost::size' is already beyond the warning. It actually made an *error* at <concepts.hpp>, which is the part of Boost.Range! I wonder why 'boost::size' that is (IMO) no longer used increases the job of customization, 'boost::range_size'. -- Shunsuke Sogame