mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-12 16:44:29 +02:00
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>
|
||||
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