[llvm-branch-commits] [libcxx] [llvm] [libc++][C++03] Use `__cxx03/` headers in C++03 mode (PR #109002)

Hristo Hristov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 1 23:15:27 PDT 2024


Zingam wrote:

@philnik777 These changes seem significant enough to affect already opened PRs and to confuse the authors who are unaware of the changes.

So basically you are surrounding all C++11 mode headers with:

```C++
#include <__configuration/cxx03.h>

#if defined(_LIBCPP_CXX03_LANG) && !defined(_LIBCPP_CXX03_USE_MAIN_HEADERS)
#  include <__cxx03/any>
#else
...
#endif // _LIBCPP_CXX03_LANG
```

And these should be added even to headers not available in C++03 mode, right? Is there anything else that needs to be observed/implemented in PRs? An headers?



https://github.com/llvm/llvm-project/pull/109002


More information about the llvm-branch-commits mailing list