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

Reply via email to