mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
style: clang-format in pre-commit updated to 19.1.2
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user