[thread] 1.41.0 MSVC warning

19 Nov
2009
19 Nov
'09
8:51 p.m.
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)
5686
Age (days ago)
5686
Last active (days ago)
0 comments
1 participants
participants (1)
-
Okko Willeboordse