Boost logo

Boost :

From: Richard Jennings (richard.jennings_at_[hidden])
Date: 2005-12-22 09:37:15


On Thu, 22 Dec 2005 10:50:03 -0000, Frank Laub <frank.laub_at_[hidden]>
wrote:

> On 12/22/05, Richard Jennings <richard.jennings_at_[hidden]> wrote:
>>
>> [snip]
>> A possible solution is to do a cast:
>> return optional_value(static_cast<value_type>(0));
>>
>> This only happens for the zero value, other values are fine.
>
>
> Can you verify that this is the fix for your compiler? I can't get this
> to
> repro with the ones I have. If it does work, I'll make sure the latest
> rev
> has this fix in it.

This fixes it for my compiler on rev4.3. It's only needed for the zero
value case, not for other values.


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