mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Stop testing no arg emplace when not available
This commit is contained in:
@ -434,6 +434,7 @@ void move_emplace_tests(X*, test::random_generator generator)
|
|||||||
template <class X>
|
template <class X>
|
||||||
void default_emplace_tests(X*, test::random_generator)
|
void default_emplace_tests(X*, test::random_generator)
|
||||||
{
|
{
|
||||||
|
#if !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x5100))
|
||||||
std::cerr<<"emplace() tests.\n";
|
std::cerr<<"emplace() tests.\n";
|
||||||
bool is_unique = test::has_unique_keys<X>::value;
|
bool is_unique = test::has_unique_keys<X>::value;
|
||||||
|
|
||||||
@ -464,6 +465,7 @@ void default_emplace_tests(X*, test::random_generator)
|
|||||||
|
|
||||||
BOOST_TEST(x.count(test::get_key<X>(y)) == (is_unique ? 1u : 2u));
|
BOOST_TEST(x.count(test::get_key<X>(y)) == (is_unique ? 1u : 2u));
|
||||||
BOOST_TEST(*x.equal_range(test::get_key<X>(y)).first == y);
|
BOOST_TEST(*x.equal_range(test::get_key<X>(y)).first == y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class X>
|
template <class X>
|
||||||
|
Reference in New Issue
Block a user