I have a class displaying a static function in myclass.hpp
class MyClass { public: static std::string dosome(); };
Well, in myclass.cpp, what should I write: this:
std::string MyClass::dosome() { ... }
or that:
static std::string MyClass::dosome() { ... }
I think I should not repeat the static keyword ... is this correct?
Andry source share