diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9e2ad2a..77f4f688 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,14 +15,14 @@ repos: # This brings in a portable version of clang-format. # See also: https://github.com/ssciwr/clang-format-wheel - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v22.1.8 + rev: v23.1.1 hooks: - id: clang-format types_or: [c++, c] # CMake linting and formatting - repo: https://github.com/BlankSpruce/gersemi-pre-commit - rev: 0.28.0 + rev: 0.28.1 hooks: - id: gersemi name: CMake linting diff --git a/include/beman/optional/optional.hpp b/include/beman/optional/optional.hpp index 1fb6fb37..c24d698a 100644 --- a/include/beman/optional/optional.hpp +++ b/include/beman/optional/optional.hpp @@ -401,7 +401,7 @@ class optional { */ template constexpr explicit(!std::is_convertible_v) optional(optional&& rhs) - requires (detail::enable_from_other); + requires (detail::enable_from_other); // \ref{optional.dtor}, destructor /** @@ -871,7 +871,7 @@ inline constexpr optional::optional(const optional& rhs) template template inline constexpr optional::optional(optional&& rhs) - requires (detail::enable_from_other) + requires (detail::enable_from_other) { if (rhs.has_value()) { construct(*std::move(rhs));