I have a class exposing 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 this:
static std::string MyClass::dosome() {
...
}
I guess I should not repeat the static keyword... is it correct?