[libcxx-commits] [libcxx] [libc++][RFC] Only include what is required by-version in the umbrella headers (PR #83740)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 4 09:58:43 PST 2024


================
@@ -61,19 +61,24 @@ namespace std {
 
 */
 
-#include <__bit/bit_cast.h>
-#include <__bit/bit_ceil.h>
-#include <__bit/bit_floor.h>
-#include <__bit/bit_log2.h>
-#include <__bit/bit_width.h>
-#include <__bit/blsr.h>
-#include <__bit/byteswap.h>
-#include <__bit/countl.h>
-#include <__bit/countr.h>
-#include <__bit/endian.h>
-#include <__bit/has_single_bit.h>
-#include <__bit/popcount.h>
-#include <__bit/rotate.h>
+#if _LIBCPP_STD_VER >= 20
----------------
mordante wrote:

Here and some other headers have the same issue. You need to move the include of `__config` before testing `#if _LIBCPP_STD_VER >= xx`.

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


More information about the libcxx-commits mailing list