|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-08-06 22:43:35
on Mon Aug 06 2007, Mark Ruzon <mark34-AT-cs.stanford.edu> wrote:
> I have defined an iterator adaptor called skip_iterator. I found that I have to
> write:
>
> skip_iterator() : skip_iterator::iterator_adaptor_(0), m(1) {}
>
> rather than
>
> skip_iterator() : iterator_adaptor_(0), m(1) {}
>
> even though iterator_adaptor_ is a protected typedef inside iterator_adaptor.
> Will someone explain why I have to qualify the name?
Because it's a dependent type.
http://www.codeproject.com/cpp/TwoPhaseLookup.asp
http://www.comeaucomputing.com/techtalk/templates/#whymembernotfound
HTH,
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
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