From 401e244795814f333be14b45bdf3bbc7b4f4b240 Mon Sep 17 00:00:00 2001 From: steve-downey <2809078+steve-downey@users.noreply.github.com> Date: Sun, 20 Sep 2026 18:32:42 +0000 Subject: [PATCH] Auto-update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- include/beman/optional/optional.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9e2ad2a..536778db 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.29.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));