T
twoeyedhuman1111
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?
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?