Browse Source

build fix

Adam Ierymenko 5 years ago
parent
commit
eef66aee9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      node/Topology.hpp

+ 2 - 2
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> &peer,const std::vector<InetAddress> &phy)
@@ -379,7 +379,7 @@ public:
 
 	inline SharedPtr<Peer> root(const int64_t now)
 	{
-		_RootRankingFunc rrf;
+		_RootRankingFunction rrf;
 		eachRoot(rrf);
 	}