Static functions vs const functions

Posted by baash05 on Stack Overflow See other posts from Stack Overflow or by baash05
Published on 2010-03-30T01:43:36Z Indexed on 2010/03/30 1:53 UTC
Read the original article Hit count: 665

Filed under:

I'm looking at a member function

int funct(int x) const; 

And I'm wondering if

static int funct(int x); 

would be better.

If a member function doesn't use any of the member variables should it be static. Are there any things that would discourage this?

© Stack Overflow or respective owner

Related posts about static-methods