[libcxx-commits] [libcxx] [libc++][modules] Modularize <cstddef> (PR #107254)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 4 09:49:30 PDT 2024
ldionne wrote:
> Is there a reason we wouldn't instead just include `<stddef.h>` instread of `<cstddef>`?
Because that defines `::size_t`, not `std::size_t`. We still need a canonical place to define `std::size_t` and that's also a problem that `__cstddef/size_t.h` solves. Additionally, this patch provides a path towards defining `std::size_t` in libc++ itself without relying on `stddef.h` in the future, which could be nice to reduce our dependency on a base C standard library.
https://github.com/llvm/llvm-project/pull/107254
More information about the libcxx-commits
mailing list