On Mon, 07 Mar 2005 21:05:52 -0500, David Abrahams
Thomas Matelich
writes: On Tue, 01 Mar 2005 12:55:21 -0500, David Abrahams
wrote: So, of course, my sample application (attached) compiles just fine. No it doesn't:
vc-C++ c:\build\bin\tmp\foo.test\vc7.1\debug-python\threading-multi\foo.obj foo.cpp foo.cpp(255) : error C2662: 'TestItem::setItemKey' : cannot convert 'this' pointer from 'const boost::detail::add_pointer_impl<T>::no_ref_type' to 'TestItem &'
But of course, you should have commented out the line that says:
c_r_iter->setItemKey(33,33); //does compile for new
Then it does compile just fine. Clearly you are doing something significantly different in your sample application.
May I ask what compile options you used to get this to not compile? Also, if you're using the 1.32.0 release or CVS? I just tried to build it again and it only warned about my unused vars. Thanks Tom