...
This commit is contained in:
@@ -397,7 +397,9 @@ static auto operator*(const T1& v1, const T2& v2)
|
||||
} else if constexpr (std::is_arithmetic_v<T2>) {
|
||||
return v1 *= v2;
|
||||
} else {
|
||||
static_assert(false, "INCOMPATIBLE TYPES!");
|
||||
using res_t = std::conditional_t<std::convertible_to<T1, T2> && std::derived_from<T1, MccAngle>, T1, T2>;
|
||||
return res_t{(double)v1 * (double)v2};
|
||||
// static_assert(false, "INCOMPATIBLE TYPES!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user