Modify

Ticket #4204 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

tst remove, may remove others nodes too

Reported by: dino.puller@… Owned by: djowel
Milestone: To Be Determined Component: spirit
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

If you remove an element from a symbol table others may be removed too.

example:

main() { std::string s; double *d; qi::symbols<char, double> vars;

vars.add("l1",12.0); vars.add("l2",0.0); vars.remove("l2"); vars.find("l1"); d = vars.find("l1"); if (d)

std::cout << "found\n";

else

std::cout << "not found\n";

}

Attachments

tst.patch Download (547 bytes) - added by dino.puller@… 4 years ago.
patch
tst.2.patch Download (547 bytes) - added by dino.puller@… 4 years ago.

Change History

Changed 4 years ago by dino.puller@…

patch

Changed 4 years ago by dino.puller@…

comment:1 Changed 4 years ago by dino.puller@…

Please ignore the first patch.

bye,

Dino

comment:2 Changed 4 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.