Boost logo

Boost Users :

From: Thomas Matelich (matelich_at_[hidden])
Date: 2005-03-08 11:04:52


On Mon, 07 Mar 2005 21:05:52 -0500, David Abrahams
<dave_at_[hidden]> wrote:
> Thomas Matelich <matelich_at_[hidden]> writes:
>
> > On Tue, 01 Mar 2005 12:55:21 -0500, David Abrahams
> > <dave_at_[hidden]> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net