Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69218 - trunk/boost/spirit/home/qi/auxiliary
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-23 15:08:38


Author: hkaiser
Date: 2011-02-23 15:08:35 EST (Wed, 23 Feb 2011)
New Revision: 69218
URL: http://svn.boost.org/trac/boost/changeset/69218

Log:
Spirit: Fixing obscure bug in qi::attr()
Text files modified:
   trunk/boost/spirit/home/qi/auxiliary/attr.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/qi/auxiliary/attr.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/auxiliary/attr.hpp (original)
+++ trunk/boost/spirit/home/qi/auxiliary/attr.hpp 2011-02-23 15:08:35 EST (Wed, 23 Feb 2011)
@@ -18,6 +18,7 @@
 #include <boost/spirit/home/qi/detail/assign_to.hpp>
 #include <boost/spirit/home/qi/meta_compiler.hpp>
 #include <boost/spirit/home/support/common_terminals.hpp>
+#include <boost/spirit/home/support/handles_container.hpp>
 #include <boost/type_traits/add_reference.hpp>
 #include <boost/type_traits/add_const.hpp>
 #include <boost/type_traits/remove_const.hpp>
@@ -96,6 +97,14 @@
     };
 }}}
 
+namespace boost { namespace spirit { namespace traits
+{
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename T, typename Attr, typename Context, typename Iterator>
+ struct handles_container<qi::attr_parser<T>, Attr, Context, Iterator>
+ : traits::is_container<Attr> {};
+}}}
+
 #endif
 
 


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