Re: [Quickfix-developers] linux compilation
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2006-05-24 19:26:48
|
On 5/24/06, Igor Seleznev <se...@ma...> wrote:
> For quickfix developers: the problem is that instead of
>
> class Foo
> {
> int Foo::Foo(void);
> }
>
> it is better to write: class Foo
> {
> int Foo(void);
> }
Its not that the latter is better. The former is just plain wrong.
The code only compiled because the compiler (e.g. older versions of
gcc) wasn't strict enough.
A constructor can't return a value anyway, so both forms are wrong :)
--=20
Caleb Epstein
caleb dot epstein at gmail dot com
|