Boost logo

Boost :

Subject: [boost] [thread] 1.41.0 MSVC warning
From: Okko Willeboordse (okko.willeboordse_at_[hidden])
Date: 2009-11-19 15:51:51


Building 1.41.0 went fine.

Compiling my code failed because of a compiler warning.

I had to modify ..\thread\future.hpp like below to silence MSVC 2008 SP1 on
windows server 2003;

409 #pragma warning(push)
410 #pragma warning(disable: 4267)
411 all_futures_lock(std::vector<registered_waiter>&
futures):
412 count(futures.size()),locks(new
boost::unique_lock<boost::mutex>[count])
413 {
414 for(unsigned i=0;i<count;++i)
415 {
416
locks[i]=boost::unique_lock<boost::mutex>(futures[i].future->mutex);
417 }
418 }
419 #pragma warning(pop)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk