"twoeyedhuman1111" <twoeyedhuman1111@gmail.com> wrote in message
news:1125532659.871355.143920@z14g2000cwz.googlegr oups.com...
[color=blue]
> I'm trying to port somebodies code from microsl0th to (our good ol)
> g++. He uses std::bidirectional_iterator_tag and it says it's
> undefined when I include the libraries for it. Here is my sample code:
> (not all of it) (of course, the other values have correct
> implementations but don't worry about those) (just worry about
> reverse_bidirectional_iterator
>
> typedef std::reverse_bidirectional_iterator<iterator,
> value_type, reference, pointer, difference_type>
> reverse_iterator;
>
> This is the error I get:
> tree.cpp:187: error: ISO C++ forbids declaration of `
> reverse_bidirectional_iterator' with no type
>
> I included <memory>,<iterator>, and <cassert> but still get that error.
> I even looked it up on google, and google said that
> std:reverse_bidirectional_iterator is outdated, but SHOULD be included
> in <iterator>
>
> Any ideas as to how to get the implementation for
> reverse_bidirectional_iterator?[/color]
If you were talking about Microsoft Visual C++, you could just
look at the header, but since you're not I can't help you.
P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com