Possible bug, or at least a severe inconvience.

Alexandre Oliva oliva@dcc.unicamp.br
Sun Nov 8 12:53:00 GMT 1998


On Nov  8, 1998, Scott A Crosby <crosby@qwes.math.cmu.edu> wrote:

> class foo {
> public:
>   int bar();
>   int bar() { return 10;};
> };

> If this is non-standard

It is; you can't redeclare a method within a class.

> I have some code which I wish to have inlined automatically, thus I
> am defining it within the class declaration.

Then declare it as inline, and define it just after the class body.

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.anu.edu.au}
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list