M
mark fine
////////////// 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!
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!