namespace or class

If you were to put a bunch of unrelated functions meshed together, would you put them in a namepsace or a class. I currently have this setup in a class, but it seems stupid to have an object, as there will never be more than one object. Then after reading about creating your own namespaces, the light bulb went off, " maybe just throw them in as global functions in a namespace instead of a class"?

the class i was referring to is:
https://github.com/metulburr/random/blob/master/myutilites.cpp
Last edited on
If they were unrelated I wouldn't put them in either :P But to answer your question I'd say it makes more sense to put them in a namespace rather than a class, as it doesn't make much sense to have to instantiate an object to use those functions (unless you made them static)
Topic archived. No new replies allowed.