|
Boost Users : |
Subject: [Boost-users] [Smart Ptr] intrusive_ptr_add_ref(T * & p)
From: Alexader (gutenev_at_[hidden])
Date: 2009-02-01 12:38:15
Looks like it is possible to define intrusive_ptr_add_ref as
void intrusive_ptr_add_ref(T * & p)
not as
void intrusive_ptr_add_ref(T * p)
Then, it is possilbe either to increase reference count as usually or to
clone the object if it is in non-shareable state. Would this work ? Is it
know use case, maintained by Smart Pointers library ?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net