Skip to content

Move string view decision to configure time - WIP #1608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SwintonStreet
Copy link
Contributor

@SwintonStreet SwintonStreet commented May 18, 2025

WIP - look at moving the JSONCPP_HAS_STRING_VIEW to configure time from compile time. This is so that there cannot be a mismatch between the compiled library objects and the headers.

Another option is to move the definition to the header so this is always correct.

Only cmake builds are covered at the moment

Detected with clang-tidy.
This ensures that cmake between the compiled objects and the headers
match. Previously, if they didn't match you could get linker issues.
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