Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][proto] Types of arguments to operator()
From: Kim Kuen Tang (kuentang_at_[hidden])
Date: 2010-05-07 17:56:37


Manjunath Kudlur schrieb:
> On Fri, May 7, 2010 at 12:09 PM, Eric Niebler <eric_at_[hidden]> wrote:
>
>> On 5/7/2010 11:26 AM, Manjunath Kudlur wrote:
>>
>>> That would work, except that I would need 2^n versions for operator()
>>> taking 'n' arguments. (Yay! I discovered the perfect forwarding
>>> problem all by myself :-/).
>>>
>> Yep, congrats.
>>
>>
>
> BTW, can you give a heads-up on how this is going to be solved in Phoenix3?
>
>
It might help you. If you take a look in the proto example folder, you
will find the file lambda.hpp.
There the 2^n operators overloads are created using preprocessor meta
programming. Very cool.

-Kim
> --
> Manjunath
> http://nonchalantlytyped.net/blog/musings/
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>


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