Boost logo

Boost Users :

Subject: [Boost-users] Boost::Pool - Singleton_pool
From: Ondrej Sluciak (ondrej.sluciak_at_[hidden])
Date: 2009-11-02 10:46:53


Hi,
Is there a way on how to derive a class from pool::singleton_pool class?
Something like:

template<typename T>
genericsingleton : boost::singleton_pool<boost::pool_allocator_tag,
sizeof(T)>

If I want to do this I always get this error:

Error 1 error C2248:
'boost::singleton_pool<Tag,RequestedSize>::singleton_pool' : cannot
access private member declared in class
'boost::singleton_pool<Tag,RequestedSize>'
c:\mycode\boosttest\boosttest\genericsingleton.h 23

Thank you for answer.


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