
14 Feb
2005
14 Feb
'05
3:51 a.m.
Don G <dongryphon@yahoo.com> 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> struct whatever_ { // ... 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