summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lltree_common.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-02-01 20:18:01 -0500
committerNat Goodspeed <nat@lindenlab.com>2011-02-01 20:18:01 -0500
commit6dcbbaeb230a0e6c54b56905728e4ab7fe459fba (patch)
tree8dc53ec1fc7d859c1a6fcf2535689771ccc5c7a2 /indra/llprimitive/lltree_common.h
parent409c59b70d2d4f2958ccd3ee8db5f7e6e08fe14e (diff)
Replace boost::ptr_map<name, etc> with std::map<name, shared_ptr>.
On Windows, unlike on Mac or Linux, boost::ptr_map<> started insisting on this concept of clonability. In other words, it wants to own a unique instance of the pointee; if you copy a value_type -- even to dereference an iterator! -- it wants to construct a whole new instance of the mapped_type. That's nuts. A std::map<..., boost::shared_ptr<>> has the property I want (the mapped_type goes away when the entry is erased), plus it's willing to pass around the shared_ptr to the same instance of the mapped_type. This change also permits simplifying a couple awkward kludges I'd already had to make to accommodate ptr_map's idiosyncracies.
Diffstat (limited to 'indra/llprimitive/lltree_common.h')
0 files changed, 0 insertions, 0 deletions