|
Boost : |
From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-08-10 18:02:40
François Duranleau wrote:
> How about:
>
> template < typename Iterator >
> class key_iterator : public get_iterator< Iterator , 0 >
> {
> public :
>
> key_iterator() {}
>
> key_iterator( const Iterator& i )
> : get_iterator< Iterator , 0 >( i )
> {
> }
> } ;
IIRC, a conforming iterator can't be implemented using inheritance.
Overloaded operators would return the base type.
-- Shunsuke Sogame
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk