Date: 2001-08-24 10:17:57
> Providing a conversion to bool and hiding
> the other conversions will probably make code such as this
> ambiguous (it will if your "BigInt" has an implicit
> conversion from int's):
> BigInt a;
> int b;
> a + b; // operator+(a, BigInt(b)) or bool(a) + b ?
Slight correction: it's ambiguous between bool(a) + b and int(a) + b --
operator int() is declared private and left undefined, but it's still
considered in operator overloading.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk