[bind10-dev] Avoid "using namespace" in headers
Mukund Sivaraman
muks at isc.org
Wed Feb 5 06:34:43 UTC 2014
Hi all
We should avoid the "using namespace" and "using" statements in header
files. These statements import the names into all C++ files that include
it (even transitively). We have identically named classes in different
namespaces in the tree. Ticket #2536 fixes the current tree, and we
should not introduce it further.
"using namespace" can be used normally in C++ code that are not included
such as typical .cc files. In headers, directly qualify symbols with
their namespaces.
Mukund
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 2881 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20140205/4a9999d8/attachment.bin>
More information about the bind10-dev
mailing list