This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why do gcc support empty struct extension for?
- From: me22 <me22 dot ca at gmail dot com>
- To: tiande <tiande at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 16 Oct 2008 10:11:54 -0400
- Subject: Re: Why do gcc support empty struct extension for?
- References: <9b431b940810151856h71ad7ber6879a38ee2af3671@mail.gmail.com> <9b431b940810151902ic22f39cof9c850a30ae51ef7@mail.gmail.com>
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.)