Someone said to me once that when possible I should use static functions because it helps the compiler "in-line operations" (which I admittedly have no idea of the meaning). I was looking for documentation on this and found none and was hoping someone could clarify me on if/how that works. I'm actually not seeing the application of a static function in general and would appreciate some help there as well.
the class that I'm currently working at is something that only requires one object in the entire program and initially I was creating one in the main and passing by reference in the constructor to other classes that would need it.
As a way to simplify things I figured I could make all data members of the class static and therefore I can simply create new objects wherever I need and the relevant data is shared between them. the functions however I don't know if I should share or not. the end result seems to be the same unless there are some sort of compiler efficiency issues.