|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70042 - in trunk/boost/spirit/home: karma/string qi/string
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-16 20:06:19
Author: hkaiser
Date: 2011-03-16 20:06:17 EDT (Wed, 16 Mar 2011)
New Revision: 70042
URL: http://svn.boost.org/trac/boost/changeset/70042
Log:
Spirit: fixing problem in sequence attribute handling if symbols components are involved
Text files modified:
trunk/boost/spirit/home/karma/string/symbols.hpp | 11 +++++++++++
trunk/boost/spirit/home/qi/string/symbols.hpp | 9 +++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/karma/string/symbols.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/string/symbols.hpp (original)
+++ trunk/boost/spirit/home/karma/string/symbols.hpp 2011-03-16 20:06:17 EDT (Wed, 16 Mar 2011)
@@ -732,6 +732,17 @@
};
}}}
+namespace boost { namespace spirit { namespace traits
+{
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename Attribute, typename T, typename Lookup
+ , typename CharEncoding, typename Tag
+ , typename Attr, typename Context, typename Iterator>
+ struct handles_container<karma::symbols<Attribute, T, Lookup, CharEncoding, Tag>
+ , Attr, Context, Iterator>
+ : traits::is_container<Attr> {};
+}}}
+
#if defined(BOOST_MSVC)
# pragma warning(pop)
#endif
Modified: trunk/boost/spirit/home/qi/string/symbols.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/string/symbols.hpp (original)
+++ trunk/boost/spirit/home/qi/string/symbols.hpp 2011-03-16 20:06:17 EDT (Wed, 16 Mar 2011)
@@ -398,6 +398,15 @@
};
}}}
+namespace boost { namespace spirit { namespace traits
+{
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename Char, typename T, typename Lookup, typename Filter
+ , typename Attr, typename Context, typename Iterator>
+ struct handles_container<qi::symbols<Char, T, Lookup, Filter>, Attr, Context, Iterator>
+ : traits::is_container<Attr> {};
+}}}
+
#if defined(BOOST_MSVC)
# pragma warning(pop)
#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