Boost logo

Boost Users :

Subject: Re: [Boost-users] make_argpack(vec_kwd, make_vector(arg[0], ..., arg[n-1]))
From: er (erwann.rogard_at_[hidden])
Date: 2009-03-31 00:51:59


> Can you explain in English rather than posting code

Sorry, I was confused. I think I wanted to simplify

fun(
  (
   kwd<1>::value = arg1, // parameter::keyword<tag<1> >& kwd<1>::value
   ...
   kwd<n>::value = argn // parameter::keyword<tag<n> >& kwd<n>::value

  )
)

and I should have probably looked for something like this

typedef parameter::parameters<
  required<tag<1> >,
  ...,
  required<tag<n> >
> spec;

fun(
  spec(arg1,...,argn)
)

So now, how to I create spec automatically?

template<std::size_t First,std::size_t Last>
struct spec{ //First = 1, Last = n+1 in the example above

  typedef ... type;

};


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