
11 May
2005
11 May
'05
1:20 p.m.
"David Abrahams" <dave@boost-consulting.com> wrote in message news:u1x8eapu4.fsf@boost-consulting.com... | "Thorsten Ottosen" <nesotto@cs.auc.dk> writes: | | > it wouldn't work with pair<iterator,iterator> without an adapter. | | I'm not convinced that's such an important capability. it is all about syntax, and it's not just pair<iterator,iterator> but users own types too. we could demand that using std::make_range; for( const suto& r : make_range( expression ) ) {...} was the generic solution, but the amount of work it takes to include <iterator> is certainly not great. also, member functions are worse at forwarding than free-standing. -Thorsten