[libcxx-commits] [libcxx] [libc++] Simplify <limits> a bit (PR #140021)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 12 09:50:48 PDT 2025
================
@@ -250,10 +239,8 @@ protected:
static _LIBCPP_CONSTEXPR const int digits = 1;
static _LIBCPP_CONSTEXPR const int digits10 = 0;
static _LIBCPP_CONSTEXPR const int max_digits10 = 0;
- static _LIBCPP_CONSTEXPR const type __min = false;
- static _LIBCPP_CONSTEXPR const type __max = true;
----------------
ldionne wrote:
I wonder why this ever existed. That dates from the initial import.
It could be that before we had push/pop macros for `min`/`max`, they used `__min` `__max` from within the library. I'm not sure, and it doesn't matter much anyways.
https://github.com/llvm/llvm-project/pull/140021
More information about the libcxx-commits
mailing list