diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2011-02-01 20:18:01 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2011-02-01 20:18:01 -0500 |
commit | 6dcbbaeb230a0e6c54b56905728e4ab7fe459fba (patch) | |
tree | 8dc53ec1fc7d859c1a6fcf2535689771ccc5c7a2 /indra/linux_updater/CMakeLists.txt | |
parent | 409c59b70d2d4f2958ccd3ee8db5f7e6e08fe14e (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/linux_updater/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions