Boost logo

Boost :

From: Loïc Joly (loic.joly_at_[hidden])
Date: 2006-04-21 05:28:52


Peter Dimov a écrit :
> Loïc Joly wrote:
>
>>Hello everybody,
>>
>>In boost::shared_ptr, there is a trick to get a type convertible to
>>bool that is not a bool... unspecified_bool_type is a function
>>pointer.
>>
>>However, with MSVC8.0, and at least when I compile with /clr, I seem
>>to have some problem with it : The null fct ptr seems to be coded
>>0xffffffff. That is just fine in non /clr compilation, where it gets
>>evaluated as false when converted in boolean. But in /clr mode, it is
>>converted to true.
>
>
> I can't reproduce this problem with the following code
[...]

Ok, I'll try to post a code that reproduces the problem, as soon as I
can. It may take a while.

Best regards,

-- 
Loïc

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk