Skip to content

Fix C++20 lambda capture warnings - #359

Merged
asmaloney merged 1 commit into
asmaloney:masterfrom
M3mL34k:fix/cxx14-lambda-captures
Sep 28, 2026
Merged

asmaloney merged 1 commit into
asmaloney:masterfrom
M3mL34k:fix/cxx14-lambda-captures

Conversation

@M3mL34k

@M3mL34k M3mL34k commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

NOTE: libE57Format will not accept generative "AI" PRs at this time

Type

  • New feature
  • Bug fix
  • Refactor
  • Documentation/formatting

Summary

Replace the implicit [=] captures in getPointProto and getAngleProto
with explicit C++14-compatible capture lists.

Rationale

C++20 reports deprecated implicit this captures caused by the [=]
default capture. Explicit captures make the intent clear, remove the
warnings, and preserve C++14 compatibility without changing functionality.

Additional Notes

The project was configured and built successfully with GCC and c++14/20

The test executable reported 27 passing tests and 5 skipped tests because
test data was unavailable.

clang-format was run using the project configuration.

Checklist

  • The included code and/or docs were written by a human
  • If including code changes, clang-format was run on the code

@asmaloney
asmaloney merged commit e89e3d7 into asmaloney:master Sep 28, 2026
12 checks passed
@asmaloney

Copy link
Copy Markdown
Owner

Thanks!

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