Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57142 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-24 18:36:09


Author: hkaiser
Date: 2009-10-24 18:36:08 EDT (Sat, 24 Oct 2009)
New Revision: 57142
URL: http://svn.boost.org/trac/boost/changeset/57142

Log:
Spirit: fixed karma alternative handling
Text files modified:
   trunk/boost/spirit/home/support/attributes.hpp | 9 ++++-----
   1 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/boost/spirit/home/support/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/attributes.hpp (original)
+++ trunk/boost/spirit/home/support/attributes.hpp 2009-10-24 18:36:08 EDT (Sat, 24 Oct 2009)
@@ -59,12 +59,11 @@
       : not_is_variant<T>
     {};
 
+ // we treat every type as if it where the variant (as this meta function is
+ // invoked for variant types only)
     template <typename T>
- struct variant_type;
-
- template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
- struct variant_type<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
- : mpl::identity<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
+ struct variant_type
+ : mpl::identity<T>
     {};
 
     template <typename T>


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