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: inline operator delete redefinition and in-charge deleting destructor


Eljay Love-Jensen <eljay@adobe.com> writes:

> Hi Jon,
> 
>  >That's [(void) for the destructor] a matter of style, they mean the
> same thing and are equally valid.
> 
> I believe that is incorrect*, and that they are explicitly invalid for
> destructors and default constructors.
> 
> They are optional for other member methods, and typically in C++ are omitted.
> 
>  >Again, both [<stdio.h> and <cstdio>] are valid.
> 
> I believe that is incorrect*.  In C the header file is <stdio.h>,
> whereas in C++ <cstdio> is the header file.

See D.5/1, table 100 . <stdio.h> is deprecated, but still normative. I
    doubt it will ever be removed, unless C merges with C++, which
    seems unlikely.


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