On 10/31/2010 5:46 PM, Fedor Pikus wrote:
> The class is badly declared.
> Should have been:
>
> ui256 ui256::operator+(const ui256&) const
>
> or even better to declare a non-member operator+:
>
> class ui256 {
> ...
> friend ui256 operator+(const ui256&  a, const ui256&  b ) /*no const
> here*/ { ... }
> };
Fedor:

A night of careful reading and studying some working C++ code in a 
library showed me what was going on, but you are exactly correct.

I moved everything out and used non-member operators.

I appreciate your response.  Thank you.

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to