This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question on overriding operator=
- From: John Fine <johnsfine at verizon dot net>
- To: Arthur Schwarz <aschwarz1309 at att dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Sep 2012 19:51:57 -0400
- Subject: Re: Question on overriding operator=
- References: <1347923425.57569.YahooMailRC@web181304.mail.ne1.yahoo.com>
Arthur Schwarz wrote:
SlipHeader& splitHeader = header->splitLeft(*cellPtr[DATASIZE/2]);
...
an unrelated call is made to an
overridden logical not (operator!=) for a double.
What is the declaration of splitLeft and the declaration of cellPtr?
Could it be trying to convert a double to a bool to get a valid
parameter for splitLeft?