On Thu, Mar 18, 2010 at 2:37 PM, Daniel V <dann.vd@gmail.com> wrote:
You were right.
Actually ObjectA has a member that is ListObject that has a member boost::mutex.
I really need to use this objects this way and the LisObject object needs that mutex, is any other way I can use them and not recesive this problem?
Thanks!!

Dann
You could use a pointer to your object, which is non-copyable and store the pointer in the list than. If you decide to go that way consider using boost pointer containers, which wrap pointer semantics and do automatic memory management of contained pointers. Here is the lib ref:
http://www.boost.org/doc/libs/1_42_0/libs/ptr_container/doc/ptr_container.html

Regards,
Ovanes