Boost logo

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:
> 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).


Boost list run by bdawes at, gregod at, cpdaniel at, john at