Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-03-07 15:41:21


Pavel Chikulaev wrote:
> "Jonathan Turkanis" <technews_at_[hidden]> wrote in message
> news:d0iarn$gpf$1_at_sea.gmane.org...
>> What about templates with more than one parameter:
>>
>> template<typename U, typename V>
>> LAZY_OP(Matrix_ + Matrix__<U, V>()); // unprotected comma
>
> Right now I can tell you only one solution:
> template<typename U, typename V>
> LAZY_OP((Matrix_ + Matrix__<U, V>()));
> How do you like it?

Fine.

>>>> Also, I believe Fusion (the sucessor to Tuple) would be a valuable
>>>> tool.
>>> Is it (same as)(old version of) Tuple?
>>
>> No. (What would be the point, then?) It provides extensible
>> tuple-like
> Oops. My bad - bad english.
>> sequences, together with a collectin of algorithms and adapters,
>> similar to MPL.
>
> I've not looked at Fusion's algorithms but I'm pretty sure that it
> won't help me with parsing operators tree and choosing the most
> conforming lazy operator.

> I've used in my library home-made
>
> template<typename FirstArgT, typename Op, typename SecondArgT>
> class binary_op;
>
> template<typename Op, typename ArgT>
> class unary_op;
>
> template<typename LazyExpr>
> class result_of;

>
> I don't think that Fusion will help me here, but I'll take a look at
> it. Thanks.

Okay, it way just a suggestion

Jonathan


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