Modify

Opened 7 years ago

Closed 7 years ago

#4204 closed Bugs (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by dino.puller@…

patch

Changed 7 years ago by dino.puller@…

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

Please ignore the first patch.

bye,

Dino

comment:2 Changed 7 years ago by anonymous

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain djowel.
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.