Opened 12 years ago

Closed 12 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@… 12 years ago.
patch
tst.2.patch (547 bytes ) - added by dino.puller@… 12 years ago.

Download all attachments as: .zip

Change History (4)

by dino.puller@…, 12 years ago

Attachment: tst.patch added

patch

by dino.puller@…, 12 years ago

Attachment: tst.2.patch added

comment:1 by dino.puller@…, 12 years ago

Please ignore the first patch.

bye,

Dino

comment:2 by anonymous, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.