Я хочу определить вектор с помощью boost :: mutex, например:
boost::mutex myMutex ;
std::vector< boost::mutex > mutexVec;
mutexVec.push_back(myMutex);
Но я получил ошибку в Linux:
/ boost_1_45_0v / include / boost / thread /pthread/mutex.hpp:33: ошибка: âboost :: mutex :: mutex (const boost :: mutex &) â является частным / usr / lib / gcc / x86_64-redhat-linux / 4.1.2 / ../../../../include/c++/4.1.2/ext/new_allocator.h:104: error: в этом контексте
Я не могу найти решение путем поиска в Интернете.
спасибо