refactor: workarounds for clang-tidy-18

This commit is contained in:
Mateusz Pusz
2024-05-08 14:46:04 +02:00
parent 23ab3ecef4
commit 54d144d112
9 changed files with 21 additions and 4 deletions

View File

@ -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)