Good day to all. I have some strange problem and checking if some one can help me.
I've defined a helpFunctions.cpp class with static functions. now I have a static function that I don't need the user to see so I'm trying to make it private.it works fine as public but once I put it in the private scope here is what I get:
To my knowledge there's nothing wrong with making static functions private. If you're getting a "this function is private" error then you must be trying to access it from outside the class.
The private function must be being called from somewhere outside the class. Check the line number for the error that the compiler is giving you to find where it is.
Whou, while looking over the code to answer you found my really stupid mistake.
Just to check, before I had the 2 functions in the second code box I used in the main the logger function and when I got it to be private I haven't erased the lines in the main.