diff --git a/include/boost/operators.hpp b/include/boost/operators.hpp index ff7f968..e906539 100644 --- a/include/boost/operators.hpp +++ b/include/boost/operators.hpp @@ -9,6 +9,9 @@ // See http://www.boost.org for most recent version including documentation. // Revision History +// 25 Jun 01 output_iterator_helper changes: removed default template +// parameters, added support for self-proxying, additional +// documentation and tests (Aleksey Gurtovoy) // 29 May 01 Added operator classes for << and >>. Added input and output // iterator helper classes. Added classes to connect equality and // relational operators. Added classes for groups of related @@ -701,17 +704,17 @@ struct input_iterator_helper , dereferenceable > > > {}; -#ifndef BOOST_MSVC -template + +template struct output_iterator_helper - : incrementable > {}; -#endif + : boost::incrementable > +{ + Derived& operator*() { return static_cast(*this); } + Derived& operator++() { return static_cast(*this); } +}; + template