Doubt about static functions in a class

May 25, 2014 at 6:07pm
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!
May 25, 2014 at 6:34pm
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 May 25, 2014 at 6:41pm
Topic archived. No new replies allowed.