Boost logo

Boost :

Subject: [boost] [thread] Can't use boost/thread/mutex.hpp without boost_system
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2012-01-18 06:13:50


Hello, The Boost.Thread version in trunk does not allow to use simple mutex as it was possible before:   #include <boost/thread/mutex.hpp>   #include <iostream>   int main()   {           boost::mutex l;           {                   boost::unique_lock<boost::mutex> g(l);                   std::cout << "Test" << std::endl;           }   } Was working fine without linking with 1.48 and 1.46 but now it fails with current trunk version requiring dependency on Boost.System. It breaks some code and breaks at least Boost.Locale. Is this change intentional or a bug? If it is intentional I'd like to know to fix Boost.Locale if not then is it possible to fix it. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/


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