|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58779 - trunk/boost/spirit/home/support/iterators
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-06 15:56:21
Author: hkaiser
Date: 2010-01-06 15:56:20 EST (Wed, 06 Jan 2010)
New Revision: 58779
URL: http://svn.boost.org/trac/boost/changeset/58779
Log:
Spirit: added special operator= to lookahead and basic_istream_iterator.
Text files modified:
trunk/boost/spirit/home/support/iterators/istream_iterator.hpp | 6 ++++++
trunk/boost/spirit/home/support/iterators/look_ahead.hpp | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/support/iterators/istream_iterator.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/istream_iterator.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/istream_iterator.hpp 2010-01-06 15:56:20 EST (Wed, 06 Jan 2010)
@@ -64,6 +64,12 @@
: base_type() {} // shipped with gcc 3.1
#endif // BOOST_WORKAROUND(__GLIBCPP__, == 20020514)
+ basic_istream_iterator operator= (base_type const& rhs)
+ {
+ this->base_type::operator=(rhs);
+ return *this;
+ }
+
// default generated operators, destructor and assignment operator are ok.
};
Modified: trunk/boost/spirit/home/support/iterators/look_ahead.hpp
==============================================================================
--- trunk/boost/spirit/home/support/iterators/look_ahead.hpp (original)
+++ trunk/boost/spirit/home/support/iterators/look_ahead.hpp 2010-01-06 15:56:20 EST (Wed, 06 Jan 2010)
@@ -55,6 +55,12 @@
: base_type() {} // shipped with gcc 3.1
#endif // BOOST_WORKAROUND(__GLIBCPP__, == 20020514)
+ look_ahead operator= (base_type const& rhs)
+ {
+ this->base_type::operator=(rhs);
+ return *this;
+ }
+
// default generated operators destructor and assignment operator are ok.
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk