gcc4.1.0: error: object missing in reference to

Fabian Cenedese Cenedese@indel.ch
Tue Dec 5 16:44:00 GMT 2006


>>I don't have a link, but I can cite the standard which states what is
>>acceptable for the sizeof operator:
>>ISO 14882 section 5.3.3
>
>I see... So I could do this:
>
>struct foo
>{
>    typedef char buf_type[1024];
>   buf_type buf;
>};
>
>int main()
>{
>    cout << sizeof(foo::buf_type) << endl;
>}

That may be usefull as well. Thanks.

bye  Fabi




More information about the Gcc-help mailing list