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

Only use noexcept in public headers on >= C++11 #1071

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Conversation

dpogue
Copy link
Contributor

@dpogue dpogue commented Nov 24, 2024

This resolves issues consuming openal-soft in projects that don't explicitly specify a C++ standard of C++11 or newer.

This also handles the fact that __cplusplus is not set properly in MSVC (always claiming to be 199711L) which prevented both the C++11 noexcept and the C++17 noexcept annotations from taking effect.

(See https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ for details, including the mandatory command-line option to opt-in to standard __cplusplus behaviour)

This resolves issues consuming openal-soft in projects that don't
explicitly specify a C++ standard of C++11 or newer.

This also handles the fact that __cplusplus is not set properly in MSVC
(always claiming to be 199711L) which prevented both the C++11 noexcept
and the C++17 noexcept annotations from taking effect.
@kcat kcat merged commit 6854a57 into kcat:master Nov 24, 2024
12 checks passed
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