[libcxx-commits] [libcxx] Get cxx03 headers working on z/OS (PR #132992)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 1 15:47:24 PST 2025
ldionne wrote:
As @philnik777 said, you're not supposed to be using the "frozen" C++03 headers yet, and definitely not to be doing that for a whole platform. I'm not surprised doing this appears to fix some of your problems since that makes your platform use headers from a few releases back, however that's not the proper way to fix this issue.
Is it possible that the `<limits.h>` header on your platform doesn't provide `SIZE_MAX` when it should? Another easy fix we could probably do in libc++ is just use `static_cast<size_t>(-1)` instead of `SIZE_MAX` in `__memory/unique_ptr.h`. But either way, it doesn't seem to me like using the frozen C++03 headers is what you want to do to fix your issue.
https://github.com/llvm/llvm-project/pull/132992
More information about the libcxx-commits
mailing list