////////////// snippet ////////////////
struct t {
static struct { } a;
};
struct { } t::a;
int main(void)
{
}
////////////// snippet ////////////////
yields:
t.cpp:5: conflicting types for `struct {anonymous} t::a'
t.cpp:2: previous declaration as `struct t::{anonymous} t::a'
anyway around this? or do i have to stop using anonymous structs and
declare the trivial embedded structure?
thanks!
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]