Re: [Boost-users] Boost::Pool - Singleton_pool
From: Ondrej Sluciak
To: boost-users@lists.boost.org Subject: [Boost-users] Boost::Pool - Singleton_pool Message-ID: <4AEEFEED.7030905@nt.tuwien.ac.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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
If I want to do this I always get this error:
Error 1 error C2248: 'boost::singleton_pool
::singleton_pool' : cannot access private member declared in class 'boost::singleton_pool ' c:\mycode\boosttest\boosttest\genericsingleton.h 23 Thank you for answer.
Hi Ondrej, I guess that you are getting this error when you try to construct an instance of your genericsingleton<> class. I don't believe that you will be able to do this because your base class has a private constructor. I suppose if you explain what your purpose is (by deriving from singleton_pool) then someone might be able to suggest a solution for you. Regards, Paul
participants (1)
-
Paul Byrne