$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.