[libcxx-commits] [libcxx] [libc++] Fix C++23 standard modules when using with `clang-cl` on Windows (PR #148992)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 18 08:32:33 PDT 2025


================
@@ -17,6 +17,11 @@
 
 #if defined(_LIBCPP_ABI_VCRUNTIME)
 #  include <new.h>
----------------
ldionne wrote:

How does the MSVC STL get their own definition for `get_new_handler()`? It seems really brittle to include `<new.h>` but have our definition for `get_new_handler()`. We should either declare all of them (`set_new_handler()`, the `new_handler` alias, etc) or rely on `<new.h>` to provide them, but not a mixture of both.

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


More information about the libcxx-commits mailing list