What are the benefits of free functions in an unnamed namespace over a class with private member functions?
see this question: Effective C++ Item 23 Prefer non-member non-friend functions to member functions and also C++ Member Functions vs Free Functions You should prefer free functions, in the extent that it promotes loose coupling. Consider making it a member function only if it works on the guts of your class, and that you consider … Read more