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

Failed to compile with (llvm's) libc++ and C++23 due to missing <exception> include #57

Open
shenlebantongying opened this issue Jun 4, 2024 · 0 comments

Comments

@shenlebantongying
Copy link

Found in a project that vendors span: podofo/podofo#167

The root issue is that stdexcept no longer transitively includes exception for C++ > 20.

#ifndef TCB_SPAN_NO_EXCEPTIONS
#include <cstdio>
#include <stdexcept>
#endif

The llvm's libc++ code is here
https://github.com/llvm/llvm-project/blob/164597616c0c9cb42536d0d112e87e616751a438/libcxx/include/stdexcept#L280-L284

llvm's libc++ is the one shipped by apple on macOS.

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

No branches or pull requests

1 participant