21 May
2015
21 May
'15
5:03 p.m.
I finally made almost like you: change the lock to an unqiue lock, and provide a copy constructor
Actually, I think it would be better to default construct the lock on copy: MyContainer(const MyContainer& other) : m_vector(other.m_vector), m_lock() { } Because on copy you want to severe the relationship, so there is one lock associated with each copy of the document(or data). Paul -- View this message in context: http://boost.2283326.n4.nabble.com/BOOST-FOREACH-Problem-to-iterate-on-a-non... Sent from the Boost - Dev mailing list archive at Nabble.com.