This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Operator overloading problems
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: bruno at codata dot com dot br
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 17 Oct 2003 13:25:38 +0100
- Subject: Re: Operator overloading problems
- Organization: Codesourcery LLC
- References: <4189.200.241.198.129.1066388956.squirrel@mail.codata.com.br>
bruno@codata.com.br wrote:
// Byte - int
Byte operator- (int& i) const {
Byte operator- (int const &i) const {
// Byte * Byte
Byte operator* (Byte& b) const {
Byte operator* (Byte const &b) const {
likewise for the other operators.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk