Originally posted by: Chris
Thanks for an excellent contribution. This class shows a great mastery of the language's use of operator overloading. By the way, I used some of the design elements in this class for creating 48-bit and 64-bit "native" datatypes for (other, microprocessor) c++ compilers which do not support __int64. Chris.
Reply
Originally posted by: Lee
Cool stuff, but with all the implementation code in the header it's difficult to see the interface. I would prefer the implementation moved into a separate .inl file. Now all I need to do is understand how it works :-)
Originally posted by: Tomaz Stih
One proposal. Making type casts implicit would make it more C++ish. One should be able to write code like this:
CLongInt<22> long_int;
int cpp_int;
cpp_int=long_int; // implicit cast by operator
Sincerely,
Tomaz
Originally posted by: Tim Sylvester
I don't currently have any use for it, but it's still cool.
Reply