build fix

This commit is contained in:
Adam Ierymenko 2019-09-16 14:51:02 -07:00
parent e245eb1eb5
commit eef66aee9a
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -47,7 +47,7 @@ class RuntimeEnvironment;
class Topology class Topology
{ {
private: private:
static _RootRankingFunction struct _RootRankingFunction
{ {
ZT_ALWAYS_INLINE _RootRankingFunction() : bestRoot(),bestRootLatency(0xffff) {} ZT_ALWAYS_INLINE _RootRankingFunction() : bestRoot(),bestRootLatency(0xffff) {}
ZT_ALWAYS_INLINE bool operator()(const SharedPtr<Peer> &peer,const std::vector<InetAddress> &phy) 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) inline SharedPtr<Peer> root(const int64_t now)
{ {
_RootRankingFunc rrf; _RootRankingFunction rrf;
eachRoot(rrf); eachRoot(rrf);
} }