diff options
Diffstat (limited to 'lru.h')
-rw-r--r-- | lru.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -36,6 +36,9 @@ public: /** Constructor */ lru_node_t(const wcstring &pkey) : prev(NULL), next(NULL), key(pkey) { } + /** Virtual destructor that does nothing for classes that inherit lru_node_t */ + virtual ~lru_node_t() {} + /** operator< for std::set */ bool operator<(const lru_node_t &other) const { |