-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
I note that the libc++ 19.1.0 headers contain code that is not valid C++11 code.
For example __type_traits/desugars_to.h contains:
template <class _CanonicalTag, class _Operation, class... _Args>
inline const bool __desugars_to_v = false;
variable templates were introduced in C++14.
If I compile with -Werror -Wstd=c++11 the compiler I use will give an error.
I believe this code (and its uses) should be guarded with _LIBCPP_STD_VERSION >= 14 conditionals.
Thank you for your time in this matter,
Ed Vogel
Metadata
Metadata
Assignees
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!