Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81896 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2012-12-13 08:34:54


Author: hkaiser
Date: 2012-12-13 08:34:54 EST (Thu, 13 Dec 2012)
New Revision: 81896
URL: http://svn.boost.org/trac/boost/changeset/81896

Log:
Spirit: Fixing problem in result size computation for Karma sequence involving variants
Text files modified:
   trunk/boost/spirit/home/support/attributes.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/support/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/attributes.hpp (original)
+++ trunk/boost/spirit/home/support/attributes.hpp 2012-12-13 08:34:54 EST (Thu, 13 Dec 2012)
@@ -537,9 +537,9 @@
     {
         typedef std::size_t type;
 
- static void call(variant<BOOST_VARIANT_ENUM_PARAMS(T)> const& val)
+ static std::size_t call(variant<BOOST_VARIANT_ENUM_PARAMS(T)> const& val)
         {
- apply_visitor(detail::attribute_size_visitor(), val);
+ return apply_visitor(detail::attribute_size_visitor(), val);
         }
     };
 


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