Skip to content
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

Test for type properties instead of testing for the OS #1170

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

vadz
Copy link
Member

@vadz vadz commented Oct 9, 2024

This should be more robust and easier to extend.

vadz added 4 commits October 10, 2024 00:12
No real changes, but use more consistent name: the type is called
"int64_t" and not "int64".
Check if int64_t is the same type as long at CMake level, while still
providing fallback definitions for non-CMake builds in the header too.

This allows to stop explicitly testing the platform, at least in the
non-fallback case.
Using these constants is not the right way to decide whether we do
something or not, so remove them to avoid the temptation.
Test for this in CMake and avoid specializing exchange_traits<char> in
this case.

Closes SOCI#1154.
@vadz vadz force-pushed the rm-soci-os-tests branch from 403ce10 to 3adf9d2 Compare October 9, 2024 22:20
@vadz vadz merged commit d7bec49 into SOCI:master Oct 10, 2024
16 checks passed
@vadz vadz deleted the rm-soci-os-tests branch October 10, 2024 16:27
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