Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-07-09 15:25:18


From: Tobias Schwinger <tschwinger_at_[hidden]>
> Rob Stewart wrote:
> > From: Tobias Schwinger <tschwinger_at_[hidden]>
> >
> >>Default values are selected for properties not specified by the
> >>tag. The next example creates the type of a function (variadic in
> >>this case) of the default calling convention. int(int...).
> >
> > Something got munged here. Here's another try:
> >
> > The following expression produces a function type for variadic
> > functions with a first parameter of type int which return an
> > int. Since a calling convention isn't specified, the default
> > calling convention is used.
>
> OK. But why add so much talk about the component types here?
>
> The following expression produces a function type for variadic function.
> Since a calling convention isn't specified, the default calling convention
> is used.
>
> function_type<mpl::vector<void,int>, variadic>::type // is void (int...)
>
> Should be enough, right?

Yes, that's fine.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk