Boost logo

Boost Users :

Subject: [Boost-users] weak_from_this
From: Hite, Christopher (Christopher.Hite_at_[hidden])
Date: 2010-08-10 09:48:32


shared_from_this contains a weak_ptr. Why not implement a
weak_from_this() member function?

Upgrading and downgrading a shared_ptr costs expensive atomic ops. I've
got some setup code that just gives weak_ptr's to
boost::singals2::slot::track().

Is this a valid (and simple) feature request?

Chris



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