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: Why do gcc support empty struct extension for?


On Wed, Oct 15, 2008 at 22:02, tiande <tiande@gmail.com> wrote:
>
> struct foo{};
>
> or just
>
> struct bar;
>
> Any example of the usage?
>

Note than those 2 things are completely different.  The former is
useless in C; the latter is not.  (The former is quite common in C++
for tags, especially in the context of template metaprogramming.)


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