But I do not know if I should go for static methods, just a header, a square, or something else?
What will be the best practice? But, I do not want an example of a utility class.
I want to add functions like this:
Uint32 MapRGB (int r, int g, int b); Const four * CopyString (const char * char); // e.t.c. You know: Utility methods ...
Do not put them in a class; Just make them non-member jobs within the scope of the namespace.
There is no rule that each function should be a member of some class function.
Comments
Post a Comment