|
Boost : |
Subject: Re: [boost] safe bool not safe enough ?
From: John Maddock (boost.regex_at_[hidden])
Date: 2013-03-14 09:48:41
>> Testable t(true);
>>
>> bool b = t; // Compiles OK - Ooops!
>>
>> Which is causing multiprecision to misbehave when used in conjunction
>> with uBlas: https://svn.boost.org/trac/boost/ticket/8292#comment:2
>
> Could you perhaps go into more detail? I don't see the connection between
> the two.
It's not directly connected - except that what should have failed to
compile - a function that looks like:
bool functor(number const& a, number const& b)
{
return a - b;
}
instead compiled but does enirely the wrong thing (the bool return is a
result of a "poor man's typeof" emulation which also does the wrong thing
with multiprecision types - I'll fix that shortly).
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk