I would like to know what is the meaning of using static non-member functions in C++
and also why one would use those instead of non static ones.
For reference I am reading this question and this question in other site and in there it says
It means that you can't call it from another cpp file
In my situation I have a .h file and a "main" cpp file.
I have implemented a function in the h file both as a static and non-static non-member one and I can call it from the cpp file and the results don't vary
So I am wondering why and what is the difference or effect of static
Note: Please, this question does not involves static in:
- C
- member functions
- variables