[Boost-bugs] [Boost C++ Libraries] #3187: symbols::add destroys existing values

Subject: [Boost-bugs] [Boost C++ Libraries] #3187: symbols::add destroys existing values
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-17 10:56:27


#3187: symbols::add destroys existing values
----------------------------------+-----------------------------------------
 Reporter: olafvdspek_at_[hidden] | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: spirit
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 This code echoes 0 instead of 1, which is not expected. Is this a bug?

 #include <boost/spirit/include/classic_symbols.hpp>
 #include <iostream>

 using namespace boost::spirit::classic;
 using namespace std;

 int main()
 {
        symbols<int> s;
        s.add("a", 1);
        s.add("a");
        cout << *find(s, "a") << endl;
        return 0;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3187>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC