|
Boost Users : |
Subject: Re: [Boost-users] Iterate over template arguments
From: Chris Cleeland (chris.cleeland_at_[hidden])
Date: 2011-11-23 10:02:12
On Wed, Nov 23, 2011 at 8:45 AM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> On 11/23/2011 03:34 PM, Allan Nielsen wrote:
>
>> What I would like is an interface where the following would be valid
>> (much like boost function):
>>
>> Interface< int (int, std::string )> if1(...) ;
>>
>
> You may want to take a look at
> <http://www.boost.org/doc/libs/release/libs/function_types/doc/html/index.html>
>
> It can extract the return type and convert the arguments to an MPL sequence.
I'm in the process of trying to wrap my head around MPL and am reading
the metaprogramming book. It has a good description of MPL sequences
and iterating over arguments in either ch 3 or 4 (that's from
memory...too lazy to pull up the book).
-- Chris Cleeland
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