Repository navigation
[GNATS 25914] Spurious diagnostic more than one instance of "erase_if" matches the argument #135
jhsedg
started this conversation in
Issue Triage - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Customer bug ID
_25914.C, unordered/tests
Description
cpfe -DTEST_NUMBER=1 --gnu_version=120100 -w --no_inlining --no_wrap_diagnostics --display_error --error_limit 1 --c
++20 -tused Test_name.c
"Test_name.c", line 88791: error #308: more than one instance of "erase_if" matches the argument list:
function template "boost::unordered::unordered_flat_map<K, V, H, KE, A>::size_type boost::unordered::era
se_if(boost::unordered::unordered_flat_map<K, V, H, KE, A> &, Pred)" (declared at line 81381)
function template "boost::unordered::unordered_flat_map<Key, T, Hash, KeyEqual, Allocator>::size_type bo
ost::unordered::erase_if(boost::unordered::unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> &, Pred)" (declared
at line 81869)
argument types are: (map_type, test::is_even)
size_type num_erased = erase_if(map, test::is_even());
^
detected during instantiation of "void test_map_erase_if() [with UnorderedMap=boost::unorder
ed::unordered_flat_map<std::string, int, boost::hashstd::string, std::equal_tostd::string, std::allocator<std::p
air<const std::string, int>>>]" at line 88862
Error limit reached.
All reactions