I need to return type that is implicit conversion of type A and type B.
Fox example :
double a + int b → implicit conversion is double
how can I do that, because C cannot be determined like this
1 2 3 4 5 6 7 8 9 10
template<typename A>
struct series {
A member;
}
template<typename A,typename B,typename C>
series <C> & operator + (A first, const B& second) {
return first.member+second.member;
}