|
Boost Users : |
Subject: Re: [Boost-users] [fusion] transform a heterogeneous vector
From: Christopher Schmidt (mr.chr.schmidt_at_[hidden])
Date: 2009-09-20 12:01:45
Fusion uses boost::result_of to determine the return type of a call
expression. Therefore you just need to define a result-metafunction.
struct triple
{
template<typename Sig>
struct result;
template<typename Self, typename Arg>
struct result<Self(Arg)>
{
typedef Arg type;
};
//...
};
-Christopher
Jean-Louis Leroy schrieb:
> ...all the elements have the same type. How can it work with
> heterogeneous vectors ? What would be typedef'ed to result_type ?
>
> Jean-Louis
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