From: David Abrahams (dave_at_[hidden])
Date: 2005-02-13 22:51:16
Don G <dongryphon_at_[hidden]> writes:
> Hi Peter,
>> Yes, I had considered a mutex pool. One problem is that
>> boost::shared_ptr is header-only, and must remain so for
>> backward compatibility reasons.
> Well, that would preclude such an optimization, though I am not sure
> how adding a .cpp file would break code (just makefiles<g>).
You can almost always replace anything that "needs" to go in a .cpp
file with a single template specialization.
template <class Ignored = void>
static some_type thing;
typedef whatever_<> whatever;
Now use whatever:: to access everything.
Seems like it could work in this case.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk