Skip to content

When using C++11, we could violate the one definition rule#2606

Merged
lemire merged 4 commits intomasterfrom
fix_cpp11
Feb 19, 2026
Merged

When using C++11, we could violate the one definition rule#2606
lemire merged 4 commits intomasterfrom
fix_cpp11

Conversation

@lemire
Copy link
Member

@lemire lemire commented Feb 18, 2026

Short title (summary):
When using C++11, we could violate the one definition rule

Description

Under C++11, SIMDJSON_CONSTEXPR_LAMBDA is defined to nothing which means that the escape_json_char could be declared without being inlined. I have added what I hope might be a good test for this issue.

Reference: TkTech/pysimdjson#136 (comment)

Thanks to @TkTech for reporting the issue.

Type of change

  • Bug fix
  • Optimization
  • New feature
  • Refactor / cleanup
  • Documentation / tests
  • Other (please describe):

@lemire lemire merged commit 95d8c81 into master Feb 19, 2026
158 checks passed
@lemire lemire deleted the fix_cpp11 branch February 19, 2026 01:08
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.

1 participant