[libcxx-commits] [libcxx] [libc++] Enable missing allocator constructors in C++11 (PR #204845)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 19 12:54:01 PDT 2026


================
@@ -21,7 +21,7 @@
 
 template <class T, class Allocator>
 void check_allocator(unsigned n, Allocator const& alloc = Allocator()) {
-#if TEST_STD_VER > 11
+#if TEST_STD_VER >= 11
----------------
ldionne wrote:

I am wary of enabling these tests in C++03 mode because this behavior is libc++ specific, and I'd like to avoid introducing a lot of complexity. I am actually wondering whether we might want to gate these constructors on C++11 -- we've stopped backporting stuff to C++03 a while ago.

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


More information about the libcxx-commits mailing list