Opened 12 years ago
Closed 12 years ago
#4204 closed Bugs (fixed)
tst remove, may remove others nodes too
| Reported by: | 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)
Change History (4)
by , 12 years ago
by , 12 years ago
| Attachment: | tst.2.patch added |
|---|
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

patch