|
Boost : |
From: Wilka (wilka_at_[hidden])
Date: 2002-02-18 14:55:36
> Example:
>
> std::vector< ...complex sub-types, ... > v;
> for( typeof( v )::const_iterator it = v.begin(); it !=
> v.end(); ++it ) { ... }
Or how about allowing
std::vector< ...complex sub-types, ... > v;
for( v::const_iterator it = v.begin(); it != v.end() ++it)
When I'm explaining this to people new to C++, they often get confused
by they need some_type::iterator instead of the_value::iterator. And I
can't think of a good reason that it needs to be this way (but I'm
probably missing something)
- Wilka
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk