Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-486 macOS was ok with find_if, Linux wanted std::find_if
Browse files Browse the repository at this point in the history
  • Loading branch information
rnistuk committed Oct 4, 2018
1 parent 6e651ff commit a02cee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/test/utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ TEST(util_test, test_that_choose_any_one_of_chooses_one_of_a_set)
{
auto peer = bzn::utils::container::choose_any_one_of(TEST_LIST);
EXPECT_TRUE(peer != TEST_LIST.end());
EXPECT_TRUE( TEST_LIST.end() != find_if( TEST_LIST.begin(), TEST_LIST.end(), [peer](bzn::peer_address_t addr){ return addr.port == peer->port; }));
EXPECT_TRUE( TEST_LIST.end() != std::find_if( TEST_LIST.begin(), TEST_LIST.end(), [peer](bzn::peer_address_t addr){ return addr.port == peer->port; }));
histogram[peer->http_port] = true;
EXPECT_TRUE(10000 > ++count);
}
Expand Down

0 comments on commit a02cee2

Please sign in to comment.