Boost logo

Boost :

From: Steve M. Robbins (steven.robbins_at_[hidden])
Date: 2002-11-02 19:27:42


Hi,

This report and fix comes from a Debian user. The bug still exists
in current CVS.

-Steve

On Thu, Oct 31, 2002 at 10:51:41AM +0200, Alexander Kjeldaas wrote:
>
> Package: libboost-dev
> Version: 1.28.0-4
>
> There is a bug in /usr/include/boost/pool/singleton_pool.hpp. The bug might
> be fixed in a newer version, I haven't checked.
>
> The attached patch should fix the problem.
>
> astor

--- singleton_pool.hppold 2002-10-18 16:25:20.000000000 +0200
+++ singleton_pool.hpp 2002-10-18 16:30:19.000000000 +0200
@@ -105,13 +105,13 @@
     {
       pool_type & p = singleton::instance();
       details::pool::guard<Mutex> g(p);
- return p.release_memory();
+ return p.p.release_memory();
     }
     static bool purge_memory()
     {
       pool_type & p = singleton::instance();
       details::pool::guard<Mutex> g(p);
- return p.purge_memory();
+ return p.p.purge_memory();
     }
 };
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk