|
Boost : |
From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 1999-12-16 22:54:00
John Maddock <John_Maddock_at_[hidden]> writes:
| Howard -
|
| >I would imagine that little implementation namespaces are (or soon will
| be) common in boost libraries. Namespace aware browsers might have the
| ability to hide and show, based on a namespace name. Instead of
| presenting a zillion little implementation detail namespaces to such a
| browser, how 'bout if boost libraries standardize on a common
| "implementation detail" namespace. Then it would be easy for the user of
| a namespace aware browser to "show boost", but hide "boost::details".<
|
| Good idea, but is it worth adopting the underscore + upper case approach -
| this is reserved in global namespace and in namespace std, but allowed in
| other namespaces, the ambiguity that I *think* it resolves is:
|
| #include <boost/some_header.hpp>
| #include <other.hpp>
|
| using namespace boost;
|
| detail::myclass c; // ambiguity is this ::detail or boost::detail?
|
| in contrast "_Detail" should never appear as a namespace or namespace
| qualifier at global scope.
|
| Hope I've got this right :-)
We can't do that. '_Detail' is reserved.
-- Gaby
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk