Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,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: v21.1.8
rev: v22.1.1
hooks:
- id: clang-format
types_or: [c++, c]

# CMake linting and formatting
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.24.0
rev: 0.26.1
hooks:
- id: gersemi
name: CMake linting
Expand All @@ -35,7 +35,7 @@ repos:
# - id: markdownlint

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell

Expand Down
4 changes: 2 additions & 2 deletions include/beman/transform_view/transform_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ class transform_view
public:
using iterator_concept = decltype(detail::concept_tag<Base>());
using value_type = std::remove_cvref_t<
std::invoke_result_t<detail::maybe_const<Const, F>&,
std::ranges::range_reference_t<Base>>>;
std::invoke_result_t<detail::maybe_const<Const, F>&,
std::ranges::range_reference_t<Base>>>;
using difference_type = std::ranges::range_difference_t<Base>;

iterator()
Expand Down
6 changes: 3 additions & 3 deletions tests/beman/transform_view/transform_view.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,9 @@ TEST(transform_view_, borrowability_safety) {
EXPECT_EQ(result, "lower");
}
{
const char* str = "UPPER";
auto view = make_transform_view_subrange(str) |
tv26::views::transform(upper_lambda);
const char* str = "UPPER";
auto view = make_transform_view_subrange(str) |
tv26::views::transform(upper_lambda);
std::string result = view | std::ranges::to<std::basic_string>();
EXPECT_EQ(result, "UPPER");
}
Expand Down
Loading