I want to define a vector with boost::mutex like :
boost::mutex myMutex ;
std::vector< boost::mutex > mutexVec;
mutexVec.push_back(myMutex);
But, I got error on Linux:
/boost_1_45_0v/include/boost/thread/pthread/mutex.hpp:33: error: âboost::mutex::mutex(const boost::mutex&)â is private /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:104: error: within this context
I cannot find a solution by searching online.
thanks
mutexVec.push_back(myMutex);
expected to do? – curiousguy