I have a function which does the following:
- When the function is called and passed a true bool value, it sets a static bool value to true
- When the function is called and passed a string, if the static bool value is set to true, it will do something with that string
Here is my concern -- will a static variable remain the same between two overloaded functions? If not, I can simply create a separate function designed to keep track of the bool value, but I try to keep things simple.