Is it still worth using static functions in C++ as a helpers?
Example: in file.cpp
static void helperFunc() { do something }
// class implementation
// ...
// some public method, not static
void myClass::doSomething() { helperFunc(); }
That way I do not have to declare private method in class's declaration.
Or maybe it is better to use unnamed namespaces and write (in the same file as above)?
namespace {
void helperFunc() { }
}
What is better?