fix: restore user-warnings within the library implementation

This commit is contained in:
Johel Ernesto Guerrero Peña
2021-02-06 21:20:31 +01:00
committed by Mateusz Pusz
parent 8100b6c13d
commit efeacca9ee
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ public:
template<safe_convertible_to_<rep> Value>
explicit(!(is_same_v<dimension, dim_one> && is_same_v<unit, ::units::one>))
constexpr quantity(const Value& v) : value_(static_cast<rep>(v)) {}
constexpr quantity(const Value& v) : value_(v) {}
template<safe_castable_to_<quantity> Q>
constexpr quantity(const Q& q) : value_(quantity_cast<quantity>(q).count()) {}