|
Boost : |
Subject: Re: [boost] [proto] Writing a transform to get at an inner constant of a transform result type
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2010-10-12 08:51:31
On 12.10.2010 13:07, Thomas Heller wrote:
> template <typename Lhs, typename Rhs>
> struct compatible : mpl::bool_<Lhs::size == Rhs::size> {};
>
> struct SimdVectorBinary :
> proto::or_<
> proto::when<
> proto::and_<
> proto::plus<Simd, Simd>
> , proto::if_<compatible<Simd(_left), Simd(_right)>()>
> >
> , exec::simd_plus(Simd(_left), Simd(_right))>
> >
> >
> // more operators here
> > {};
>
Thank you, works perfectly!
Sebastian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk