This commit is contained in:
2025-07-19 19:52:30 +03:00
parent 464c262e08
commit 9cd52267d6
11 changed files with 628 additions and 58 deletions

View File

@@ -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!");
}
}