Index: test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp =================================================================== --- test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp +++ test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp @@ -24,6 +24,8 @@ #include #include +#include "test_macros.h" + int dummy = 42; int return_value(int) { return dummy; } @@ -81,10 +83,10 @@ // Check that the call operator SFINAE's away when too few arguments // are provided but is well-formed otherwise. { - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); } @@ -108,7 +110,7 @@ // Check that the call operator SFINAE's away when too few arguments // are provided but is well-formed otherwise. { - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); }