Re: Why do gcc support empty struct extension for?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 15, 2008 at 22:02, tiande <tiande@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux