Boost logo

Geometry :

Subject: Re: [geometry] Why reverse_dispatch returns bool rather than mpl::bool_<T> ?
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2014-05-20 10:33:04


Hi,

Samuel Debionne wrote:
> Hello all,
>
> It's all in title but the reason I'm asking is that non-type parameter
> are not really friendly with mpl metafunction composition.

reverse_dispatch<> is derived from integral_constant<bool, ...> so AFAIU
it can be passed directly to the mpl metafunction. Or am I wrong about this?

Regards,
Adam

> For instance,
> a Placeholder Expression requires that :
>
>> All of X's template parameters, including the default ones, are types.
> Concrete problem :
>
> I would like to turn the detail::distance::default_strategy into a meta
> function class :
>
> mpl::quote5<detail::distance::default_strategy> would do the trick if
> the Reverse template parameter was not a non type parameter bool.
>
> Regards,
> Samuel
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry
>


Geometry list run by mateusz at loskot.net