c++: notes on namespace

Boris Kolpackov boris at kolpackov.net
Thu Mar 11 15:21:51 CST 2004


Good day,

Some additional notes/corrections: 

> @@ Using-directive is an efficient way to 'inherit' namespaces.
> 
> 
> @@ Using-directive allow you to 'override' some declarations 
>    (see also DEC++ 17.4.3 last paragraph; PLC++ 8.2.8.2).

The latter using-directive should be using-declaration.

As of composing namespaces out of other namespaces I found
an interesting GNU extension called "strong using":

http://gcc.gnu.org/onlinedocs/gcc/Strong-Using.html#Strong%20Using

In particular it shows two potential problems in standard 
using-directive with regards to the namespace composition 
technique. 

hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://www.kolpackov.net/pipermail/notes/attachments/20040311/045af055/attachment.bin


More information about the notes mailing list