Boost logo

Boost :

From: Gavin Collings (gcollings_at_[hidden])
Date: 2000-01-31 08:45:13


Aside from a load of member template stuff, I had to make the following
code change to cyclic_ptr.hpp to get the test to run. Could you check
it and advise / correct if it's wrong.


   template<typename T> struct cyclic_ptr : recyclable_base<T> {
      void reset(T* p=0,deleter<T>& r=default_deleter()) {
         if (--ph->n == 0)

changed to recycler::free( ph );

         ph = new_handle(p,&r), ph->n = 1;

Boost list run by bdawes at, gregod at, cpdaniel at, john at