Boost logo

Boost Users :

Subject: Re: [Boost-users] iterator adaptor not inheriting pointer typedef
From: gast128 (gast128_at_[hidden])
Date: 2014-11-07 04:13:48


I think I got the same problem, see 'iterator_facade Boost 1.57' a couple of
messages ago.

You can work around it btw by:

template <typename DerivedType, typename T>
class IteratorFacade : public boost::iterator_facade<DerivedType, const T,
std::random_access_iterator_tag>
{
    typedef boost::iterator_facade<DerivedType, const T,
std::random_access_iterator_tag> base;

    typedef typename base::reference ReferenceType;
    
    ReferenceType dereference () const;

    //etc...
};


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net