RE: Operator overloading problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed:

    // Byte = int
    const Byte& operator= (int b) {
        value = b;
        return *this;
    }

Thaks.

Bruno


> Note that your assignment operator for int's should also normally
> return a Byte reference rather than void.
>
> Lyle
>
> -----Original Message-----
> From: bruno@xxxxxxxxxxxxx [mailto:bruno@xxxxxxxxxxxxx]
>
> Ok. It worked with const references. Thank you.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux