Static functions vs const functions
- by baash05
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?