Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70655 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-27 22:10:42


Author: hkaiser
Date: 2011-03-27 22:10:42 EDT (Sun, 27 Mar 2011)
New Revision: 70655
URL: http://svn.boost.org/trac/boost/changeset/70655

Log:
Spirit: fixing a container attribute handling problem
Text files modified:
   trunk/boost/spirit/home/support/attributes.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/attributes.hpp (original)
+++ trunk/boost/spirit/home/support/attributes.hpp 2011-03-27 22:10:42 EDT (Sun, 27 Mar 2011)
@@ -109,6 +109,14 @@
       : is_weak_substitute<T, Expected> {};
 
     template <typename T, typename Expected>
+ struct is_weak_substitute<optional<T>, Expected>
+ : is_weak_substitute<T, Expected> {};
+
+ template <typename T, typename Expected>
+ struct is_weak_substitute<T, optional<Expected> >
+ : is_weak_substitute<T, Expected> {};
+
+ template <typename T, typename Expected>
     struct is_weak_substitute<T, Expected,
         typename enable_if<
             mpl::and_<


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