This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with constructor return types


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]