Re: cvs commit: squid3/src cache_manager.cc client_side_reply.cc

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 21 Feb 2006 00:30:33 +0100 (CET)

On Mon, 20 Feb 2006, Guido Serassio wrote:

> Into FtpStateData class declaration:
>
> - void FtpStateData::writeCommand(const char *buf);
> + void writeCommand(const char *buf);
>
> I'm wondering why only gcc 4.1 don't like this ... :-(

IIRC the C++ standard has changed slightly on this point, and no longer
allows methods to redeclare wich class they are defined in. It has
never been required anyway, and is jus a source of errors when
copy-pasting class definitions.

The change in GCC4.1 is just that it now warns about this by default,
before some options had to be used to turn on the warning. Don't know
which, or exacly where I found this.

Regards
Henrik
Received on Mon Feb 20 2006 - 16:30:37 MST

This archive was generated by hypermail pre-2.1.9 : Tue Feb 28 2006 - 12:00:05 MST