libstdc++: Fix tests using wrong allocator type

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc:
	Use allocator with the correct value type.
	* testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc:
	Likewise.
This commit is contained in:
Jonathan Wakely 2020-07-30 18:41:47 +01:00
parent cf5d0fc2d1
commit 357beca8bc
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ template<typename _Tp>
};
using type4 = std::unordered_multiset<int, std::hash<int>, std::equal_to<int>,
not_noexcept_dflt_cons_alloc<std::pair<const int, int>>>;
not_noexcept_dflt_cons_alloc<int>>;
static_assert(!std::is_nothrow_default_constructible<type4>::value,
"not noexcept default constructible");

View File

@ -62,7 +62,7 @@ template<typename _Tp>
};
using type4 = std::unordered_set<int, std::hash<int>, std::equal_to<int>,
not_noexcept_dflt_cons_alloc<std::pair<const int, int>>>;
not_noexcept_dflt_cons_alloc<int>>;
static_assert(!std::is_nothrow_default_constructible<type4>::value,
"not noexcept default constructible");