Boost logo

Boost :

Subject: Re: [boost] Pervasive dependency upon mpl::bool_
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-03 03:54:54


On Tue, Jun 3, 2014 at 11:49 AM, John Maddock <boost.regex_at_[hidden]> wrote:
>>> Vicente J. Botet Escriba wrote:
>
> Right, what's wrong with:
>
> namespace boost{ namespace mpl{

That should be namespace core.

> template bool<B> struct bool_;
>
> }
>
> namespace mpl{
>
> using boost::core::bool_;
>
> }}

Yes, I had similar idea. I'll try to extract minimal bits of MPL in a
separate branch in Core, maybe dropping some workarounds in the
process to reduce the amount of code.

> The idea of artificially splitting up type_traits seems pretty abhorrent to
> be honest.

I think there's no need to split anything for cases like in blank.hpp.
We can get away with a simple forward declaration:

template< typename >
struct is_pod;

template< >
struct is_pod< blank > : mpl::true_ {};


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