|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63444 - trunk/boost/spirit/home/qi/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-06-29 20:33:22
Author: hkaiser
Date: 2010-06-29 20:33:21 EDT (Tue, 29 Jun 2010)
New Revision: 63444
URL: http://svn.boost.org/trac/boost/changeset/63444
Log:
Spirit: fixing ambiguity in Qi auto_ API
Text files modified:
trunk/boost/spirit/home/qi/detail/parse_auto.hpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/qi/detail/parse_auto.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/parse_auto.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/parse_auto.hpp 2010-06-29 20:33:21 EDT (Tue, 29 Jun 2010)
@@ -22,7 +22,11 @@
///////////////////////////////////////////////////////////////////////////
template <typename Expr>
struct parse_impl<Expr
- , typename enable_if<traits::meta_create_exists<qi::domain, Expr> >::type>
+ , typename enable_if<
+ mpl::and_<
+ traits::meta_create_exists<qi::domain, Expr>
+ , mpl::not_<traits::matches<qi::domain, Expr> > >
+ >::type>
{
template <typename Iterator>
static bool call(Iterator& first, Iterator last, Expr& expr)
@@ -76,7 +80,11 @@
///////////////////////////////////////////////////////////////////////////
template <typename Expr>
struct phrase_parse_impl<Expr
- , typename enable_if<traits::meta_create_exists<qi::domain, Expr> >::type>
+ , typename enable_if<
+ mpl::and_<
+ traits::meta_create_exists<qi::domain, Expr>
+ , mpl::not_<traits::matches<qi::domain, Expr> > >
+ >::type>
{
template <typename Iterator, typename Skipper>
static bool call(Iterator& first, Iterator last, Expr& expr
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