style: clang-format in pre-commit updated to 19.1.2

This commit is contained in:
Mateusz Pusz
2024-10-29 15:04:28 +01:00
parent 9b3bae0f05
commit d8bc0598fe
3 changed files with 4 additions and 5 deletions

View File

@ -11,7 +11,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
rev: v19.1.2
hooks:
- id: clang-format
- repo: https://github.com/cheshirekow/cmake-format-precommit

View File

@ -646,8 +646,8 @@ template<Representation Value>
explicit(false) quantity(Value) -> quantity<one, Value>;
template<QuantityLike Q>
explicit(quantity_like_traits<Q>::explicit_import)
quantity(Q) -> quantity<quantity_like_traits<Q>::reference, typename quantity_like_traits<Q>::rep>;
explicit(quantity_like_traits<Q>::explicit_import) quantity(Q)
-> quantity<quantity_like_traits<Q>::reference, typename quantity_like_traits<Q>::rep>;
MP_UNITS_EXPORT_END

View File

@ -78,8 +78,7 @@ struct quantity_like_traits<std::chrono::duration<Rep, Period>> {
using rep = Rep;
using T = std::chrono::duration<Rep, Period>;
[[nodiscard]] static constexpr rep to_numerical_value(const T& q) noexcept(
std::is_nothrow_copy_constructible_v<rep>)
[[nodiscard]] static constexpr rep to_numerical_value(const T& q) noexcept(std::is_nothrow_copy_constructible_v<rep>)
{
return q.count();
}