Skip to content

Commit

Permalink
Silence clang-format version-specific fmt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Oct 16, 2024
1 parent 45ba9da commit 7b772bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings/cpp/tests/boolean-function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class enumerate_view : public std::ranges::view_interface<enumerate_view<V>> {
constexpr enumerate_view()
requires std::default_initializable<V>
= default;
// clang-format off
// Ubuntu 24.04. has clang-format 18.1.3, which wants to remove the space
// before `{}`. clang-format 18.1.8, however, wants the space.
constexpr explicit enumerate_view(V base) : _base(std::move(base)) {};
// clang-format on

[[nodiscard]] constexpr iterator begin() const {
return iterator(std::ranges::begin(_base), 0);
Expand Down

0 comments on commit 7b772bc

Please sign in to comment.