|
Boost Users : |
Subject: Re: [Boost-users] [function] generalization of std::plus and std::multiplies with more than one argument type
From: alfC (alfredo.correa_at_[hidden])
Date: 2009-10-21 20:06:12
> As a part of my workj on Boost.SIMD, i have a generlized fucntor with
> result_of protocol support and tag-dispatching.
thank you, where I can find Boost.SIMD, is functor defined there?
> Basically :
>
> functor<plus>()(x,y)
>
> return the sum of x and y for the correct semantic of + for the type of
> x and y.
is this "plus" the same as "std::plus"? If so how can x, y be of
different type?
> result_of<functor<plus>(X,Y)>::type returns it result type.
>
> Is that smthg like that you need ?
seems very similar to what I am looking for. I will know after
knowning more details.
Thank you,
Alfredo
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net