diff --git a/src/ripple/peerfinder/sim/GraphAlgorithms.h b/src/ripple/peerfinder/sim/GraphAlgorithms.h index 2bc11ae144..44c8f705c2 100644 --- a/src/ripple/peerfinder/sim/GraphAlgorithms.h +++ b/src/ripple/peerfinder/sim/GraphAlgorithms.h @@ -40,11 +40,11 @@ void breadth_first_traverse (Vertex& start, Function f) typedef typename Traits::Edge Edge; typedef std::pair Probe; - typedef std::deque Work; + typedef std::deque Work; typedef std::set Visited; Work work; Visited visited; - work.emplace_back (std::make_pair (&start, 0)); + work.emplace_back (&start, 0); int diameter (0); while (! work.empty ()) { @@ -62,7 +62,7 @@ void breadth_first_traverse (Vertex& start, Function f) if (visited.find (v) != visited.end()) continue; if (! iter->closed()) - work.emplace_back (std::make_pair (v, p.second + 1)); + work.emplace_back (v, p.second + 1); } f (*p.first, diameter); }