Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Nested namespace in C++

Reply
Thread Tools

Nested namespace in C++

 
 
Pallav singh
Guest
Posts: n/a
 
      07-23-2012
Hi All,

whats the usage of having nested namespace in c++ ?

Thanks
Pallav Singh
 
Reply With Quote
 
 
 
 
Juha Nieminen
Guest
Posts: n/a
 
      07-23-2012
Pallav singh <> wrote:
> whats the usage of having nested namespace in c++ ?


The same as having inner classes and types? Organization and minimizing
global namespace pollution.
 
Reply With Quote
 
 
 
 
Qi
Guest
Posts: n/a
 
      07-28-2012
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com ASP .Net 0 01-06-2006 11:31 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Reaching into the default namespace when using another namespace. Jason Heyes C++ 1 11-19-2004 02:36 AM
Namespace: Is it a scope or a namespace? Anonymous C++ 3 08-18-2003 01:31 PM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. Èý¹â ASP .Net 1 07-29-2003 04:31 PM



Advertisments