mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +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: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v18.1.8
|
rev: v19.1.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||||
|
@ -646,8 +646,8 @@ template<Representation Value>
|
|||||||
explicit(false) quantity(Value) -> quantity<one, Value>;
|
explicit(false) quantity(Value) -> quantity<one, Value>;
|
||||||
|
|
||||||
template<QuantityLike Q>
|
template<QuantityLike Q>
|
||||||
explicit(quantity_like_traits<Q>::explicit_import)
|
explicit(quantity_like_traits<Q>::explicit_import) quantity(Q)
|
||||||
quantity(Q) -> quantity<quantity_like_traits<Q>::reference, typename quantity_like_traits<Q>::rep>;
|
-> quantity<quantity_like_traits<Q>::reference, typename quantity_like_traits<Q>::rep>;
|
||||||
|
|
||||||
MP_UNITS_EXPORT_END
|
MP_UNITS_EXPORT_END
|
||||||
|
|
||||||
|
@ -78,8 +78,7 @@ struct quantity_like_traits<std::chrono::duration<Rep, Period>> {
|
|||||||
using rep = Rep;
|
using rep = Rep;
|
||||||
using T = std::chrono::duration<Rep, Period>;
|
using T = std::chrono::duration<Rep, Period>;
|
||||||
|
|
||||||
[[nodiscard]] static constexpr rep to_numerical_value(const T& q) noexcept(
|
[[nodiscard]] static constexpr rep to_numerical_value(const T& q) noexcept(std::is_nothrow_copy_constructible_v<rep>)
|
||||||
std::is_nothrow_copy_constructible_v<rep>)
|
|
||||||
{
|
{
|
||||||
return q.count();
|
return q.count();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user