On Monday, January 7, 2013 12:51:34 PM UTC-6, Victor Bazarov wrote:
> Uh... But it *is* convertible. Please look again, CSymbolic has a
> c-tor that takes CVariable as an argument.
Oops, sorry.
The problem is caused by function template deducution, conversion is
not considered here.
Enable it, in a quick and dirty way:
template <template <typename> class C, typename T,
typename = typename std::enable_if<
std::is_convertible<C<T>, CSymbolic<T>>::value>::type>
CSymbolic<T> operator+(C<T> a1, C<T> a2) {
return {};
}
--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
__________________________________________________ _
4BSD --
http://4bsd.biz/