|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-06-17 06:17:14
"David Abrahams" <dave_at_[hidden]> wrote in message
news:uzmtrjbgr.fsf_at_boost-consulting.com...
|
| I note:
|
|
//////////////////////////////////////////////////////////////////////////
| // default
|
//////////////////////////////////////////////////////////////////////////
|
| template< typename C >
| struct range_iterator
| {
| typedef BOOST_DEDUCED_TYPENAME C::iterator type;
| };
|
| (***)
[snip, no const for C ]
| at (***). What am I missing?
Not much.
It must be a left-over from desperate attempts to make
the code portable.
In general, people seem to prefer range_result_iterator<T>::type.
We shuold just make range_iterator<const T> as well as
range_iterator<T> valid and then depricate range_const_iterator and
range_result_iterator.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk