On 2012-7-23 15:07, Pallav singh wrote:
>
> whats the usage of having nested namespace in c++ ?
IMHO, nested namespace is not as useful as sub package in Java.
Maybe due to usually Java IDEs have good support to auto complete
for sub packages.
I personally prefer one top namespace only.
However, I think nested namespace is useful for internal
and private implementation.
A nested namespace "_internal" implicit that the user should
not use it.
Boost library uses lots of nested namespace for that purpose.
--
WQ
|