Boost logo

Boost :

Subject: Re: [boost] Pervasive dependency upon mpl::bool_
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2014-06-02 19:21:08


Hello,

On Mon, Jun 2, 2014 at 12:39 PM, Peter Dimov <lists_at_[hidden]> wrote:
> Vicente J. Botet Escriba wrote:
>
>> template <> struct is_pod< blank > : true_type {};
>
>
> This still breaks dispatch on mpl::true_/mpl::false_. The use case is:
>
> void f( mpl::true_ );
> void f( mpl::false_ );
>
> struct X;
>
> int main()
> {
> f( boost::is_something<X>() );
> }
>
> This is existing code, both inside and outside Boost.

I use this a lot. But it is really easy to fix if it breaks. But,
can't Boost.Core include a integral_constant and boost.mpl just use
that for false_type and true_type too?

Regards,

-- 
Felipe Magno de Almeida

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