Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions include/beman/optional/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class optional {
*/
template <class U>
constexpr explicit(!std::is_convertible_v<U, T>) optional(optional<U>&& rhs)
requires (detail::enable_from_other<T, U, U &&>);
requires (detail::enable_from_other<T, U, U&&>);

// \ref{optional.dtor}, destructor
/**
Expand Down Expand Up @@ -871,7 +871,7 @@ inline constexpr optional<T>::optional(const optional<U>& rhs)
template <class T>
template <class U>
inline constexpr optional<T>::optional(optional<U>&& rhs)
requires (detail::enable_from_other<T, U, U &&>)
requires (detail::enable_from_other<T, U, U&&>)
{
if (rhs.has_value()) {
construct(*std::move(rhs));
Expand Down
Loading