This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with constructor return types
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Eljay Love-Jensen <eljay at adobe dot com>
- Cc: "Tony Lawrie (freenet)" <tonl at freenet dot co dot uk>, Gcc-Help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 12 Oct 2003 17:13:39 +0100
- Subject: Re: Problems with constructor return types
- Organization: Codesourcery LLC
- References: <5.2.1.1.0.20031011171824.018bc0e0@iplan-mn.corp.adobe.com>
Eljay Love-Jensen wrote:
Hi Tony,
C++ default constructors are...
Foo::Foo() { ... }
...not...
Foo::Foo(void) { ... }
Those two definitions are equivalent in C++. [8.3.5]/2
Also, 0.00 is type double, 0.00f is type float.
correct, but it will not cause a problem in this instance.
There is insufficient information in Tony's original email to determine
what the problem is.
--
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