From eef66aee9aa478d3840b07e321d21b9119ff3669 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 16 Sep 2019 14:51:02 -0700 Subject: [PATCH] build fix --- node/Topology.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/Topology.hpp b/node/Topology.hpp index 398b4aad6..2a3e44282 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -47,7 +47,7 @@ class RuntimeEnvironment; class Topology { private: - static _RootRankingFunction + struct _RootRankingFunction { ZT_ALWAYS_INLINE _RootRankingFunction() : bestRoot(),bestRootLatency(0xffff) {} ZT_ALWAYS_INLINE bool operator()(const SharedPtr &peer,const std::vector &phy) @@ -379,7 +379,7 @@ public: inline SharedPtr root(const int64_t now) { - _RootRankingFunc rrf; + _RootRankingFunction rrf; eachRoot(rrf); }