|
Boost : |
From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-12-04 23:15:35
> Oh, and another issue. When writing expression template codes, you also
> need to get return types of unary expressions, and those return types may
> depend on the argument type and the operation. So we should consider
> having both binary and unary operator promotion traits.
>
Funny thing, LL has that as well!
template<class T1>
return_type_1<arthmetic_action<plus_action>, T1>::type
operator+(T1 &x)
{ return +x; }
-gary-
gary.powell_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk