
3 Apr
2008
3 Apr
'08
5:43 p.m.
Peter Dimov wrote:
Joe Gottman quite correctly points out in
http://svn.boost.org/trac/boost/ticket/1762
that shared_ptr should honor user definitions of BOOST_DISABLE_THREADS and disable MT support.
Unfortunately, despite documenting quite clearly that BOOST_DISABLE_THREADS is a user macro, Boost.Config defines it in some situations. This means that I can't rely on this macro to reflect the user's intent, as I don't know whether it's been set explicitly by the user, or implicitly (and incorrectly IMO) by Boost.Config.
My gut feeling is to remove the code in suffix.hpp that defines it when BOOST_DISABLE_WIN32 is set (which is the only place Boost.Config sets it I believe) and see if anyone complains. John.