mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
refactor: workarounds for clang-tidy-18
This commit is contained in:
@@ -43,8 +43,10 @@ public:
|
||||
using value_type = T;
|
||||
|
||||
min_impl() = default;
|
||||
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
||||
constexpr explicit(false) min_impl(T v) noexcept : value_(v) {}
|
||||
template<typename U>
|
||||
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
||||
constexpr explicit(false) min_impl(min_impl<U> i) noexcept : value_(static_cast<T>(static_cast<U>(i)))
|
||||
{
|
||||
}
|
||||
|
@@ -264,7 +264,9 @@ struct derived_quantity : quantity<Q::reference, Rep> {
|
||||
using R = quantity<reference, Rep>;
|
||||
|
||||
derived_quantity() = default;
|
||||
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
||||
constexpr explicit(!std::is_trivial_v<Rep>) derived_quantity(const R& t) : R(t) {}
|
||||
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
||||
constexpr explicit(!std::is_trivial_v<Rep>) derived_quantity(R&& t) : R(std::move(t)) {}
|
||||
|
||||
constexpr derived_quantity& operator=(const R& t)
|
||||
|
Reference in New Issue
Block a user