Bonjour,
puis initialiser un weak_ptr avec un élément d'un ptr_vector
merci
Bonjour,
puis initialiser un weak_ptr avec un élément d'un ptr_vector
merci
Salut,
The weak_ptr class template stores a "weak reference" to an object that's already managed by a shared_ptr.
Par définition un boost::weak_ptr est fait pour fonctionner avec un boost::shared_ptr...
MAT.
ok donc on voit là un inconvénient à utiliser un ptr_vector plutot qu'un vector<shared_ptr>..dommage
Partager