Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-03-08 12:06:00


Thomas Matelich <matelich_at_[hidden]> writes:

> 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?

Standard bjam:

  /Zm800 -nologo /EHsc -c /Z7 /Od /Ob0 /EHsc /GR /MDd /Op
  /Zc:wchar_t,forScope -I"c:\boost"

> Also, if you're using the 1.32.0 release or CVS?

CVS.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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