summaryrefslogtreecommitdiff
path: root/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/utilities/memory/pointer.traits/rebind.pass.cpp')
-rw-r--r--test/std/utilities/memory/pointer.traits/rebind.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/std/utilities/memory/pointer.traits/rebind.pass.cpp b/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
index 8716c05f3335..4caf4f650297 100644
--- a/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
+++ b/test/std/utilities/memory/pointer.traits/rebind.pass.cpp
@@ -19,9 +19,11 @@
#include <memory>
#include <type_traits>
+#include "test_macros.h"
+
int main()
{
-#ifndef _LIBCPP_HAS_NO_TEMPLATE_ALIASES
+#if TEST_STD_VER >= 11
static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
#else
static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>::other, double*>::value), "");