[PATCH] D21877: [libcxx] [test] is_swappable_include_order.pass.cpp was using a terse static_assert.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 29 16:39:49 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

is_swappable_include_order.pass.cpp was using a terse static_assert.

As before, this unnecessarily limits compatibility with MSVC and old versions of GCC.

http://reviews.llvm.org/D21877

Files:
  test/std/utilities/meta/meta.unary/meta.unary.prop/is_swappable_include_order.pass.cpp

Index: test/std/utilities/meta/meta.unary/meta.unary.prop/is_swappable_include_order.pass.cpp
===================================================================
--- test/std/utilities/meta/meta.unary/meta.unary.prop/is_swappable_include_order.pass.cpp
+++ test/std/utilities/meta/meta.unary/meta.unary.prop/is_swappable_include_order.pass.cpp
@@ -31,7 +31,7 @@
     {
         LIBCPP_STATIC_ASSERT(std::__is_swappable<T>::value, "");
 #if TEST_STD_VER > 14
-        static_assert(std::is_swappable_v<T>);
+        static_assert(std::is_swappable_v<T>, "");
 #endif
     }
     {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21877.62310.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160629/32f40f8a/attachment.bin>


More information about the cfe-commits mailing list