diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2015-06-29 15:37:32 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2015-06-29 15:37:32 -0400 |
commit | 76cb1fcf0b5b9d8415e2517c482bab0c6c6602fb (patch) | |
tree | 40266174a42e96d57e184b47fdfd12fd4f89d086 /indra/newview/llfloaterbvhpreview.cpp | |
parent | 8bd39583fe19eb8f372f59f9aaee6d7c16a6f4e1 (diff) |
MAINT-4952: Add IntrusivePtr wrapper for boost::intrusive_ptr.
For a RefCounted subclass T, boost::intrusive_ptr<T> must be instantiated as
boost::intrusive_ptr<T>(raw ptr, false) to avoid immortal instances.
Forgetting that final bool parameter is both easy and extremely hard to spot
with desk checking or code review. IntrusivePtr<T> provides constructors that
Do The Right Thing, so we can typedef a subclass T's ptr_t to IntrusivePtr<T>
rather than directly to boost::intrusive_ptr<T>.
Diffstat (limited to 'indra/newview/llfloaterbvhpreview.cpp')
0 files changed, 0 insertions, 0 deletions