Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67605 - trunk/boost/variant/detail
From: steven_at_[hidden]
Date: 2011-01-03 00:06:53


Author: steven_watanabe
Date: 2011-01-03 00:06:52 EST (Mon, 03 Jan 2011)
New Revision: 67605
URL: http://svn.boost.org/trac/boost/changeset/67605

Log:
Make operator() const. Fixes #4967
Text files modified:
   trunk/boost/variant/detail/apply_visitor_delayed.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/variant/detail/apply_visitor_delayed.hpp
==============================================================================
--- trunk/boost/variant/detail/apply_visitor_delayed.hpp (original)
+++ trunk/boost/variant/detail/apply_visitor_delayed.hpp 2011-01-03 00:06:52 EST (Mon, 03 Jan 2011)
@@ -58,7 +58,7 @@
 
     template <typename Visitable>
         BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(result_type)
- operator()(Visitable& visitable)
+ operator()(Visitable& visitable) const
     {
         return apply_visitor(visitor_, visitable);
     }
@@ -67,7 +67,7 @@
 
     template <typename Visitable1, typename Visitable2>
         BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(result_type)
- operator()(Visitable1& visitable1, Visitable2& visitable2)
+ operator()(Visitable1& visitable1, Visitable2& visitable2) const
     {
         return apply_visitor(visitor_, visitable1, visitable2);
     }


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