Skip to content

Conversation

@adayton1
Copy link
Member

Some compilers (e.g. gcc 11.2.1) get tripped up by the use of a lambda as a default argument in a header file. I believe it has to do with possible ODR violations since no two lambdas are the same type. Using a functor object instead works around the issue. It should still be inlined.

@adayton1 adayton1 merged commit 9953f69 into develop Sep 30, 2025
7 of 9 checks passed
@adayton1 adayton1 deleted the bugfix/lambda_default_argument branch September 30, 2025 16:51
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.

4 participants