|
-
June 25th, 2010, 10:44 AM
#1
Operator Overloading
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|