forked from mpusz/mp-units
refactor: implicit conversion on construction allowed for quantity_point
if quantity
does the same
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user