Index: test/std/containers/associative/map/map.special/non_member_swap.pass.cpp =================================================================== --- test/std/containers/associative/map/map.special/non_member_swap.pass.cpp +++ test/std/containers/associative/map/map.special/non_member_swap.pass.cpp @@ -98,6 +98,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef test_allocator A; typedef test_compare > C; @@ -166,7 +167,6 @@ assert(m2.key_comp() == C(1)); assert(m2.get_allocator() == A(1)); } - } #if __cplusplus >= 201103L { typedef std::map, min_allocator> M; @@ -242,6 +242,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef min_allocator A; typedef test_compare > C; @@ -276,6 +277,5 @@ assert(m2.key_comp() == C(1)); assert(m2.get_allocator() == A()); } - } #endif } Index: test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp =================================================================== --- test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp +++ test/std/containers/associative/multimap/multimap.special/non_member_swap.pass.cpp @@ -98,6 +98,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef test_allocator A; typedef test_compare > C; @@ -166,7 +167,6 @@ assert(m2.key_comp() == C(1)); assert(m2.get_allocator() == A(1)); } - } #if __cplusplus >= 201103L { typedef std::multimap, min_allocator>> M; @@ -242,6 +242,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef min_allocator A; typedef test_compare > C; @@ -276,6 +277,5 @@ assert(m2.key_comp() == C(1)); assert(m2.get_allocator() == A()); } - } #endif } Index: test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp =================================================================== --- test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp +++ test/std/containers/associative/multiset/multiset.special/non_member_swap.pass.cpp @@ -21,6 +21,7 @@ int main() { typedef int V; + { typedef std::multiset M; { M m1; @@ -94,6 +95,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef test_allocator A; typedef test_compare > C; Index: test/std/containers/associative/set/set.special/non_member_swap.pass.cpp =================================================================== --- test/std/containers/associative/set/set.special/non_member_swap.pass.cpp +++ test/std/containers/associative/set/set.special/non_member_swap.pass.cpp @@ -21,6 +21,7 @@ int main() { typedef int V; + { typedef std::set M; { M m1; @@ -94,6 +95,7 @@ assert(m1 == m2_save); assert(m2 == m1_save); } + } { typedef test_allocator A; typedef test_compare > C;