Skip to content

Commit

Permalink
avoid shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 committed Sep 26, 2024
1 parent eab6b4f commit c5a4109
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,12 @@ BOOST_AUTO_TEST_CASE(Hash) {
BOOST_TEST(hash_value(s) == yk::hash_value_for(42)); // call hash_value by ADL

{
hash_test::MultiS s{31415, 9265, 3589};
hash_test::MultiS ms{31415, 9265, 3589};
std::size_t seed = 0;
boost::hash_combine(seed, yk::hash_value_for(s.a));
boost::hash_combine(seed, yk::hash_value_for(s.b));
boost::hash_combine(seed, yk::hash_value_for(s.c));
BOOST_TEST(hash_value(s) == seed);
boost::hash_combine(seed, yk::hash_value_for(ms.a));
boost::hash_combine(seed, yk::hash_value_for(ms.b));
boost::hash_combine(seed, yk::hash_value_for(ms.c));
BOOST_TEST(hash_value(ms) == seed);
}
}

Expand Down

0 comments on commit c5a4109

Please sign in to comment.