Boost logo

Boost :

Subject: Re: [boost] Namespace policy: putting names in boost::detail
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-07-04 18:21:27


On 07/04/2011 08:54 PM, Robert Ramey wrote:

> In fact, if you've used "using" judiciously in your code
> even that would be trivial.

That doesn't work to inject overloads and specializations.

namespace A
{
     template<class T>
     struct foo;
}

namespace B
{
     using A::foo;
     template<> struct foo<int> {};
}

does not work.

The implementation detail in question is a generalized concept-based
overloading system, and it requires all overloads and specializations to
be in the same namespace.

I guess I'll just put it in boost::simd::detail and hide its uage behind
a macro.


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