Boost C++ Libraries: Ticket #3187: symbols::add destroys existing values https://svn.boost.org/trac10/ticket/3187 <p> This code echoes 0 instead of 1, which is not expected. Is this a bug? </p> <p> #include &lt;boost/spirit/include/classic_symbols.hpp&gt; #include &lt;iostream&gt; </p> <p> using namespace boost::spirit::classic; using namespace std; </p> <p> int main() { </p> <blockquote> <p> symbols&lt;int&gt; s; s.add("a", 1); s.add("a"); cout &lt;&lt; *find(s, "a") &lt;&lt; endl; return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3187 Trac 1.4.3 Hartmut Kaiser Mon, 02 Aug 2010 15:49:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3187#comment:1 https://svn.boost.org/trac10/ticket/3187#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is intended behaviour and not a bug. </p> Ticket anonymous Mon, 02 Aug 2010 22:30:34 GMT <link>https://svn.boost.org/trac10/ticket/3187#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3187#comment:2</guid> <description> <p> In that case it should be documented. </p> </description> <category>Ticket</category> </item> </channel> </rss>