GCC2 workarounds; fixed permutation_iterator_example

[SVN r22048]
This commit is contained in:
Dave Abrahams
2004-01-29 13:33:33 +00:00
parent 7f125cacb9
commit 13dcd5590f
3 changed files with 10 additions and 7 deletions

View File

@ -47,8 +47,10 @@ class node_iter
)
: super_t(other.base()) {}
private:
# if !BOOST_WORKAROUND(__GNUC__, == 2)
private: // GCC2 can't grant friendship to template member functions
friend class boost::iterator_core_access;
# endif
void increment() { this->base_reference() = this->base()->next(); }
};