
22 Dec
2005
22 Dec
'05
2:37 p.m.
On Thu, 22 Dec 2005 10:50:03 -0000, Frank Laub <frank.laub@gmail.com> wrote:
On 12/22/05, Richard Jennings <richard.jennings@teraview.com> 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.