[libcxx-commits] [libcxx] [libc++] Granularize includes of <optional> (PR #213433)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 2 22:53:49 PDT 2026
================
@@ -26,7 +26,8 @@
#if _LIBCPP_HAS_LOCALIZATION
# include <__locale>
-# include <optional>
+# include <__optional/nullopt_t.h>
+# include <__optional/optional.h>
----------------
frederick-vs-ja wrote:
We also need to (unconditionally) include `<__cstddef/size_t.h>` in this file.
I dropped [NFC] from the PR title as this PR is not quite NFC.
https://github.com/llvm/llvm-project/pull/213433
More information about the libcxx-commits
mailing list