
17 Mar
2010
17 Mar
'10
11 p.m.
The thing is that I instanciated an ArrayList object and called the "insert" method and I received an error from boost::mutex AND boost::noncopyable!! and I am not using them at all!! This is the code that generates the error: ArrayList<ObjectA> myArrayListA; ObjectA myObjectA; myArrayListA.insert(myObjectA);
Maybe ObjectA has a member of type boost::mutex? insert() invokes compiler-generated copy-constructor of ObjectA, which in turn tries to copy the mutex. In short, you ObjectA is non-copyable.