Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74877 - in trunk/boost/spirit/home: karma/nonterminal qi/nonterminal
From: joel_at_[hidden]
Date: 2011-10-10 02:47:30


Author: djowel
Date: 2011-10-10 02:47:25 EDT (Mon, 10 Oct 2011)
New Revision: 74877
URL: http://svn.boost.org/trac/boost/changeset/74877

Log:
Added rvalue support for rule %=
Text files modified:
   trunk/boost/spirit/home/karma/nonterminal/rule.hpp | 2 +-
   trunk/boost/spirit/home/qi/nonterminal/rule.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/karma/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/rule.hpp 2011-10-10 02:47:25 EDT (Mon, 10 Oct 2011)
@@ -250,7 +250,7 @@
 #if !defined(BOOST_NO_RVALUE_REFERENCES)
         // for rvalue references
         template <typename Expr>
- friend rule& operator%=(rule& r, Expr&& expr)
+ friend rule& operator%=(rule& r, Expr const&& expr)
         {
             define<mpl::true_>(r, expr, traits::matches<karma::domain, Expr>());
             return r;

Modified: trunk/boost/spirit/home/qi/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/rule.hpp 2011-10-10 02:47:25 EDT (Mon, 10 Oct 2011)
@@ -241,7 +241,7 @@
 #if !defined(BOOST_NO_RVALUE_REFERENCES)
         // for rvalue references
         template <typename Expr>
- friend rule& operator%=(rule& r, Expr&& expr)
+ friend rule& operator%=(rule& r, Expr const&& expr)
         {
             define<mpl::true_>(r, expr, traits::matches<qi::domain, Expr>());
             return r;


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