[libcxx-commits] [libcxx] [libc++] Fix possible out of range access in bitset (PR #121348)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 12 05:13:48 PDT 2025


================
@@ -80,7 +80,7 @@ public:
     constexpr bool operator[](size_t pos) const;
     reference operator[](size_t pos);            // constexpr since C++23
     unsigned long to_ulong() const;              // constexpr since C++23
-    unsigned long long to_ullong() const;        // constexpr since C++23
+    unsigned long long to_ullong() const;        // since C++11, constexpr since C++23
----------------
philnik777 wrote:

Yeah, we don't mention "sine C++11" in most places, since we back-port a humongous amount of code from C++11.

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


More information about the libcxx-commits mailing list