From: scleary_at_[hidden]
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.

        -Steve