From 575b0bb7b0b7eed68cb1378fcb0fa30d47b94500 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 7 Feb 2014 09:09:01 -0800 Subject: [PATCH] Fix gcc compile --- src/ripple/peerfinder/sim/GraphAlgorithms.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ripple/peerfinder/sim/GraphAlgorithms.h b/src/ripple/peerfinder/sim/GraphAlgorithms.h index 2bc11ae14..44c8f705c 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); }