Index: test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -36,15 +37,15 @@ typedef std::pair V; { typedef std::map C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::map, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::map, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::map> C; Index: test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -36,15 +37,15 @@ typedef std::pair V; { typedef std::multimap C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multimap, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multimap, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multimap> C; Index: test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/multiset/multiset.cons/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -35,15 +36,15 @@ { { typedef std::multiset C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multiset, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multiset, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::multiset> C; Index: test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp +++ test/std/containers/associative/set/set.cons/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -35,15 +36,15 @@ { { typedef std::set C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::set, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::set, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::set> C; Index: test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp +++ test/std/containers/container.adaptors/queue/queue.cons/move_noexcept.pass.cpp @@ -19,12 +19,13 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" int main() { { typedef std::queue C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } } Index: test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp +++ test/std/containers/container.adaptors/stack/stack.cons/move_noexcept.pass.cpp @@ -19,12 +19,13 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" int main() { { typedef std::stack C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } } Index: test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/deque/deque.cons/move_noexcept.pass.cpp @@ -19,6 +19,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -33,15 +34,15 @@ { { typedef std::deque C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::deque> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::deque> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::deque> C; Index: test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/forwardlist/forwardlist.cons/move_noexcept.pass.cpp @@ -19,6 +19,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -33,15 +34,15 @@ { { typedef std::forward_list C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::forward_list> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::forward_list> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::forward_list> C; Index: test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp +++ test/std/containers/sequences/list/list.cons/move_noexcept.pass.cpp @@ -19,6 +19,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -33,15 +34,15 @@ { { typedef std::list C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::list> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::list> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::list> C; Index: test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp +++ test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp @@ -19,6 +19,7 @@ #include #include +#include "test_macros.h" #include "test_allocator.h" template @@ -32,21 +33,21 @@ { { typedef std::vector C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::vector> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::vector> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::vector> C; // In C++17, move constructors for allocators are not allowed to throw #if TEST_STD_VER > 14 - static_assert( std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT( std::is_nothrow_move_constructible::value, ""); #else static_assert(!std::is_nothrow_move_constructible::value, ""); #endif Index: test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.map/unord.map.cnstr/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -43,17 +44,17 @@ { { typedef std::unordered_map C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_map, std::equal_to, test_allocator>> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_map, std::equal_to, other_allocator>> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_map> C; Index: test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -43,17 +44,17 @@ { { typedef std::unordered_multimap C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multimap, std::equal_to, test_allocator>> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multimap, std::equal_to, other_allocator>> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multimap> C; Index: test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -43,17 +44,17 @@ { { typedef std::unordered_multiset C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multiset, std::equal_to, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multiset, std::equal_to, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_multiset> C; Index: test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp =================================================================== --- test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp +++ test/std/containers/unord/unord.set/unord.set.cnstr/move_noexcept.pass.cpp @@ -20,6 +20,7 @@ #include #include +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -43,17 +44,17 @@ { { typedef std::unordered_set C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_set, std::equal_to, test_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_set, std::equal_to, other_allocator> C; - static_assert(std::is_nothrow_move_constructible::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_move_constructible::value, ""); } { typedef std::unordered_set> C;