diff --git a/src/radix.h b/src/radix.h --- a/src/radix.h +++ b/src/radix.h @@ -37,7 +37,7 @@ * taken before reading anything in the tree. */ template > -struct RadixTree { +struct RadixTree : private Adapter { private: static const int BITS = 4; static const int MASK = (1 << BITS) - 1; @@ -51,7 +51,6 @@ struct RadixElement; struct RadixNode; - Adapter adapter; std::atomic root; public: @@ -207,7 +206,7 @@ } private: - KeyType getId(const T &value) const { return adapter.getId(value); } + KeyType getId(const T &value) const { return Adapter::getId(value); } bool insert(const KeyType &key, RCUPtr value) { uint32_t level = TOP_LEVEL;