[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] [Thread][win32, msvc] Mutexes
From:       "Peter Dimov" <pdimov () pdimov ! com>
Date:       2008-09-29 12:39:59
Message-ID: 2A33C79E1736408D8F1CCA05F4B72C64 () pdimov2
[Download RAW message or body]

Anthony Williams:
> The windows.h include comes from boost.datetime. Hopefully it'll go
> soon.
>
> The auto-link against libboost_thread is surprising to me, but I
> rarely use just boost mutexes in an app. I'll investigate.
>
> Hopefully Jeff will figure out a way to selectively autolink
> libboost_datetime too, as it's not really required for the thread
> stuff.

If being header-only and not including <windows.h> are design goals for 
boost::mutex, the library should include tests for them. <windows.h> is 
easy:

#include <boost/thread/mutex.hpp>
int Sleep;

The header-only-ness could be more difficult; it's hard to test that a 
library is not being linked.

It might also be possible to refactor Boost.Threads to not include any 
Date/Time headers on its own (but still interoperate with it). 

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic