Click to See Complete Forum and Search --> : Operator Overloading


AKRichard
June 25th, 2010, 10:44 AM
Hello all,

Ive been working on a bignumber class, right now I have all the operators overloaded, but I have, but it looks sloppy, I wrote a definition for all the combonations:

Operator(BI^, BI^);
operator (BI^, short);
operator(short,BI^);

my question is, shouldnt the class initialization:

BI(short)

or the assignment
operator=(short)

do an implicit conversion so that I dont have to write a separate definition for every possible combination?