Is using nested namespaces bad?

Sep 30, 2016 at 9:06am
I was wondering is using nested namespaces to organize the classes in my library is good programming practice?

I was wanted to organize the classes like packages in Java.

Thanks in advance!
---- Joseph Foster ----
Sep 30, 2016 at 9:25am
I was wondering is using nested namespaces to organize the classes in my library is good programming practice?
Yes, namespaces are designed for this. Additionally you can use the same namespace in different [header] files.
Sep 30, 2016 at 9:32am
Thanks! You just made my code so much cleaner!
Sep 30, 2016 at 10:20am
Actually I should have mention that the same namespace may appear more than once regardless in what file.
Sep 30, 2016 at 11:48am
The C++ Standard Library has multiple files that contain stuff within namespace std.

It also has std::chrono:
http://www.cplusplus.com/reference/chrono/
That is a nested namespace, isn't it?
That is a library.
Does the C++ Standard Library follow good "programming practices"?

I rest my case.
Topic archived. No new replies allowed.