Doubt about static functions in a class

I have a general question about static functions.

I am trying to look for a criteria that determines when a function must be declared as static into the privates.

Is it ok to say "if it does not use any of the class atributes it can/must go into static?

Thanks!
static into the privates.
That's what she said? (sorry...)

Hmm, I wouldn't say that a function "must" be static based on that criteria. Here's a good post to read about it: http://stackoverflow.com/questions/4921150/when-to-use-static-member-function
Last edited on
Topic archived. No new replies allowed.