$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] make_argpack(vec_kwd, make_vector(arg[0], ..., arg[n-1]))
From: er (erwann.rogard_at_[hidden])
Date: 2009-03-30 20:40:09
Hi All,
Any suggestion for this?
typedef typename mpl::transform<range_c<0,n>,meta::kwd >::type vec_kwd_t;
arg_list<
        tagged_argument<tag<0>,A<0> >,
        ...
                arg_list<
                        tagged_argument<tag<n-1>,A<n-1> >,
                        empty_arg_list
		>
        
 >
make_argpack(vec_kwd,make_vector(arg[0],...,arg[n-1])){
// Step 1: get a vector of tagged_argument
  vec_tagged_arg_t vec_tagged_arg =  fusion::transform(
                kwds,
         args,
         binary_f()
        ); //OK
// Step 2:
// recursively construct args_list_t from vec_tagged_arg using
//    arg_list(TaggedArg arg, Next const& tail)
//      : Next(tail)
//
//      , arg(arg)
//
//    {}
//
// A little tedious. Before I go ahead : is this the proper way?
// A better solution altogether?
}
Thanks.