[libcxx-commits] [PATCH] D109056: [libc++] Disallow volatile types in std::allocator

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 20 16:59:47 PDT 2021


ldionne accepted this revision.
ldionne added a comment.

LGTM once CI passes.



================
Comment at: libcxx/test/libcxx/memory/allocator_volatile.verify.cpp:15-16
+
+auto A1 = std::allocator<volatile int>{}; // expected-error@*:* {{std::allocator does not support volatile types}}
+auto A2 = std::allocator<const volatile int>{}; // expected-error@*:* {{std::allocator does not support volatile types}}
----------------
So this works in C++03 mode.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109056/new/

https://reviews.llvm.org/D109056



More information about the libcxx-commits mailing list