
Pavel Chikulaev wrote:
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:d0iarn$gpf$1@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