Boost logo

Boost :

Subject: Re: [boost] Deciding what to put in `namespace detail`
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-12 15:00:04


AMDG

Jean-Louis Leroy wrote:
> For my future Boost.RDB submission, I feel tempted to put everything
> except the names that are in the public (documented) interface in a
> nested `namespace detail`. Why not even put *everything* there and
> copy selected names in the public namespace by means of
> using-declarations.

private functions should never be in the same namespace
as public classes, because ADL can pick them up.

> Has it been already done ? And what about having three namespaces : a
> "public" one for the user, a "protected" one for those extending the
> lib, and a "private" one for undocumented internals?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk