Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68725 - in trunk/boost/spirit/home: karma/nonterminal/detail qi/nonterminal/detail
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-08 12:32:07


Author: hkaiser
Date: 2011-02-08 12:32:06 EST (Tue, 08 Feb 2011)
New Revision: 68725
URL: http://svn.boost.org/trac/boost/changeset/68725

Log:
Spirit: added missing CP specializations
Text files modified:
   trunk/boost/spirit/home/karma/nonterminal/detail/parameterized.hpp | 13 +++++++++++++
   trunk/boost/spirit/home/qi/nonterminal/detail/parameterized.hpp | 13 +++++++++++++
   2 files changed, 26 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/karma/nonterminal/detail/parameterized.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/detail/parameterized.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/detail/parameterized.hpp 2011-02-08 12:32:06 EST (Tue, 08 Feb 2011)
@@ -14,6 +14,7 @@
 
 #include <boost/ref.hpp>
 
+#include <boost/spirit/home/support/handles_container.hpp>
 #include <boost/spirit/home/karma/generator.hpp>
 
 namespace boost { namespace spirit { namespace karma
@@ -60,4 +61,16 @@
     };
 }}}
 
+namespace boost { namespace spirit { namespace traits
+{
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename Subject, typename Params, typename Attribute
+ , typename Context, typename Iterator>
+ struct handles_container<karma::parameterized_nonterminal<Subject, Params>
+ , Attribute, Context, Iterator>
+ : handles_container<typename remove_const<Subject>::type
+ , Attribute, Context, Iterator>
+ {};
+}}}
+
 #endif

Modified: trunk/boost/spirit/home/qi/nonterminal/detail/parameterized.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/detail/parameterized.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/detail/parameterized.hpp 2011-02-08 12:32:06 EST (Tue, 08 Feb 2011)
@@ -14,6 +14,7 @@
 
 #include <boost/ref.hpp>
 
+#include <boost/spirit/home/support/handles_container.hpp>
 #include <boost/spirit/home/qi/parser.hpp>
 
 namespace boost { namespace spirit { namespace qi
@@ -59,4 +60,16 @@
     };
 }}}
 
+namespace boost { namespace spirit { namespace traits
+{
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename Subject, typename Params, typename Attribute
+ , typename Context, typename Iterator>
+ struct handles_container<qi::parameterized_nonterminal<Subject, Params>
+ , Attribute, Context, Iterator>
+ : handles_container<typename remove_const<Subject>::type
+ , Attribute, Context, Iterator>
+ {};
+}}}
+
 #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