|
Boost : |
From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-08-13 07:47:16
STL defines some common arithmetic operators, such as
template<typename T>
struct plus {
T operator+(const T&, constT&);
};
There is a need for more general operators:
template<typename T1, typename T2, typename res>
struct plus {
res operator+(const T1&, constT2&);
};
For example, std::complex<double> + double -> std::complex<double>.
Has there been any discussion on this issue?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk