Hi,
I have an interesting issue, well, it's not really an issue, but I'd
like to understand the mechanics of what's going on. I have a file,
in CLI, which has a class declared, and a static fuction. Because the
class is declared globally, I declare it as static.
Is a function with a namespace scope declared as static by default?
So, this worked fine when I was accessing the static function inside
the cpp file paired with this header. Keep in mind that it is
declared static explicitly.
But when I ty to access this static function from another file, aside
from the cpp file the class is implemented in, I get an compile error
C2129 function declared but not defined. But when declare it as
static inline, or remove the static keyword it works fine.
Can someone explain why this is?