Using boost::mutex in a boost::shared_ptr

17 Oct
2003
17 Oct
'03
9:05 a.m.
Hi Can I store boost::mutex'es in a map using the following constuct typedef boost::shared_ptr<boost::mutex> MutexPtr; typedef map< std::string, MutexPtr> MutexMap; MutextMap mmap; mmap["foo"] = MutexPtr( new boost::mutex ); I'm not sure that this is safe to do - the boost::mutex is boost::noncopyable which might indicate that there could be a potentional problem. Thanks in advance
7935
Age (days ago)
7935
Last active (days ago)
1 comments
2 participants
participants (2)
-
Anders Hybertz