$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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