Skip to content

Pass the gapped filter's scan function by const reference - #983

Merged
bbuchfink merged 1 commit into
bbuchfink:masterfrom
kevinmoran1988:pr/gapped-filter-const-ref
Sep 24, 2026
Merged

bbuchfink merged 1 commit into
bbuchfink:masterfrom
kevinmoran1988:pr/gapped-filter-const-ref

Conversation

@kevinmoran1988

Copy link
Copy Markdown
Contributor

gapped_filter took its std::function by value, so each call copied it. It now
takes a const reference. The wrapped callable is a plain function pointer, so
the copy was cheap either way.

Builds on v2.2.8 (745cd3b) and passes ctest.

An AI assistant (Claude Code Opus 5.0) assisted with this work.

gapped_filter took its std::function by value, so each target copied it.
The wrapped callable is a plain function pointer, so the copy was cheap
either way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bbuchfink
bbuchfink merged commit 765aafc into bbuchfink:master Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants