Modify

Opened 8 years ago

Closed 8 years ago

#4204 closed Bugs (fixed)

tst remove, may remove others nodes too

Reported by: dino.puller@… Owned by: Joel de Guzman
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@… 8 years ago.
patch
tst.2.patch (547 bytes) - added by dino.puller@… 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by dino.puller@…

Attachment: tst.patch added

patch

Changed 8 years ago by dino.puller@…

Attachment: tst.2.patch added

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

Please ignore the first patch.

bye,

Dino

comment:2 Changed 8 years ago by anonymous

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Joel de Guzman.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.