Re: Multiple inheritance/interface delegate through template functionnot working
On Jul 2, 4:51 pm, ricec...@gehennom.invalid (Marcus Kwok) wrote:
BobR <removeBadB...@worldnet.att.net> wrote:
And, on (old) compilers that accept 'void main()', is the 'return 0;'
guaranteed?
I think that since void main() is non-standard, then the C++ Standard
cannot guarantee anything about it.
The standard requires a diagnostic. A standard conformant
compiler is required to issue at least a warning if void main is
used. (Many will issue an error, and fail to compile the
program.)
However, the compiler
implementation may provide its own guarantee to make sure it does The
Right Thing(tm) (for that platform).
Of course, regardless of what the compiler might or might not
do, clean programming still requires the "return 0". Say what
you mean, and mean what you say---if the function definition
says the function returns an int, you return an int.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34