|
Boost Users : |
Subject: Re: [Boost-users] Iterate over template arguments
From: Allan Nielsen (a_at_[hidden])
Date: 2011-11-23 10:04:52
On Wed, Nov 23, 2011 at 3:45 PM, 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(...) ;
>>
>> I known this might not be easy or the intension of c++99, but I would
>> like to give it a try anyway...
>
> There is no particular problem doing that in C++98/03.
>
> 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.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Hi
It might be me which does not understand it, but as I read the
documentation funciton_types is for manipulating functions pointers,
not to manage template arguments...
Please correct me if I'm wrong
-- Allan
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