From 9f3104166f62323cd7309e5283edf3d38bb1351f Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 9 Jul 2001 23:51:49 +0000 Subject: [PATCH] output_iterator_helper changes: removed default template parameters, added support for self-proxying, additional documentation and tests (Aleksey Gurtovoy) [SVN r10576] --- include/boost/operators.hpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) 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