Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73586 - trunk/boost/spirit/home/support
From: joel_at_[hidden]
Date: 2011-08-06 20:29:43


Author: djowel
Date: 2011-08-06 20:29:42 EDT (Sat, 06 Aug 2011)
New Revision: 73586
URL: http://svn.boost.org/trac/boost/changeset/73586

Log:
allow const and non-const visitation
Text files modified:
   trunk/boost/spirit/home/support/extended_variant.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/extended_variant.hpp
==============================================================================
--- trunk/boost/spirit/home/support/extended_variant.hpp (original)
+++ trunk/boost/spirit/home/support/extended_variant.hpp 2011-08-06 20:29:42 EDT (Sat, 06 Aug 2011)
@@ -49,6 +49,12 @@
             return var.apply_visitor(v);
         }
 
+ template <typename F>
+ typename F::result_type apply_visitor(F const& v) const
+ {
+ return var.apply_visitor(v);
+ }
+
         variant_type const& get() const
         {
             return var;


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