[GiNaC-devel] removing the evil

Richard B. Kreckel kreckel at ginac.de
Thu Jul 17 22:31:37 CEST 2008


Dear Alexei,

Alexei Sheplyakov wrote:
> So, e1 == e2 definitely creates the `relational' object. But it seems
> to give correct results anyway. I don't quite understand what's going
> on.

Initially, class relational had an operator bool(), which evaluated to 
true or false when such an object was used in a boolean context.

With GiNaC-1.1.0, that was replaced by operator safe_bool(), a technique 
inspired by Boost.

Best wishes
   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the GiNaC-devel mailing list