#12 possible wrong const placement

closed-fixed
nobody
None
5
2010-02-23
2008-08-21
No

returning a const fundamental type like

class bar
{
const int foo()
};

isn't really meaningful, perhaps the intent is

class bar
{
int foo() const;
};

i.e. that the member is const

patch attached to do this to avoid a gcc 4.3.1 warning about it

Discussion

  • caolan mcnamara

    caolan mcnamara - 2010-02-23
    • status: open --> closed-fixed
     
  • caolan mcnamara

    caolan mcnamara - 2010-02-23

    fix checked in

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks