Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60849 - trunk/boost/spirit/home/qi/string
From: joel_at_[hidden]
Date: 2010-03-25 22:33:30


Author: djowel
Date: 2010-03-25 22:33:30 EDT (Thu, 25 Mar 2010)
New Revision: 60849
URL: http://svn.boost.org/trac/boost/changeset/60849

Log:
When supplying 3 arguments for the adder, require the third (val) argument. Otherwise, it will be ambiguous with the 2-param version.
Text files modified:
   trunk/boost/spirit/home/qi/string/symbols.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

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 2010-03-25 22:33:30 EDT (Thu, 25 Mar 2010)
@@ -263,7 +263,7 @@
 
             template <typename Iterator>
             adder const&
- operator()(Iterator const& first, Iterator const& last, T const& val = T()) const
+ operator()(Iterator const& first, Iterator const& last, T const& val) const
             {
                 sym.lookup->add(first, last, val);
                 return *this;


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