Operator overloading problems

Nathan Sidwell nathan@codesourcery.com
Fri Oct 17 12:26:00 GMT 2003


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




More information about the Gcc-help mailing list