refactor: implicit conversion on construction allowed for quantity_point if quantity does the same

This commit is contained in:
Mateusz Pusz
2023-05-11 11:10:52 +02:00
parent 8ef6d409b2
commit 27cd47b7af

View File

@@ -97,7 +97,7 @@ public:
template<typename T> template<typename T>
requires std::constructible_from<quantity_type, T> requires std::constructible_from<quantity_type, T>
constexpr explicit quantity_point(T&& v) : q_(std::forward<T>(v)) constexpr explicit(!std::convertible_to<T, quantity_type>) quantity_point(T&& v) : q_(std::forward<T>(v))
{ {
} }