diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-01-21 18:22:43 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-01-21 18:22:43 +0000 |
commit | fcdb19904c5da82ee72ce2dc76510e936fcc0bf3 (patch) | |
tree | 8aeba60c1ea68d13838b3efdf09b5c786eb23a71 /libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp | |
parent | ed9fec736502adf3a8f35a488243c212d640223d (diff) | |
download | bcm5719-llvm-fcdb19904c5da82ee72ce2dc76510e936fcc0bf3.tar.gz bcm5719-llvm-fcdb19904c5da82ee72ce2dc76510e936fcc0bf3.zip |
Implement LWG#2101 'Some transformation types can produce impossible types' Introduced a new (internal) type trait '__is_referenceable' with tests. Use that trait in add_lvalue_reference, add_rvalue_reference and add_pointer.
llvm-svn: 258418
Diffstat (limited to 'libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp index f9ebc37a5dd..e335bd19ef2 100644 --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.ref/remove_ref.pass.cpp @@ -12,12 +12,13 @@ // remove_reference #include <type_traits> +#include "test_macros.h" template <class T, class U> void test_remove_reference() { static_assert((std::is_same<typename std::remove_reference<T>::type, U>::value), ""); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 static_assert((std::is_same<std::remove_reference_t<T>, U>::value), ""); #endif } |