Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61697 - trunk/boost/spirit/home/karma/string
From: dgregor_at_[hidden]
Date: 2010-04-30 03:01:37


Author: dgregor
Date: 2010-04-30 03:01:36 EDT (Fri, 30 Apr 2010)
New Revision: 61697
URL: http://svn.boost.org/trac/boost/changeset/61697

Log:
Cannot bind a non-const reference to a const lvalue; change this
function to return by value instead.

Text files modified:
   trunk/boost/spirit/home/karma/string/symbols.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 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 2010-04-30 03:01:36 EDT (Fri, 30 Apr 2010)
@@ -556,7 +556,7 @@
         }
 
         template <typename Attr>
- value_type& at(Attr const& attr)
+ value_type at(Attr const& attr)
         {
             typename Lookup::iterator it = lookup->find(attr);
             if (it == lookup->end())


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