提交 f7843f30 编写于 作者: C codeeply 提交者: Facebook Github Bot

Move ~Comparator define to comparator.h

Summary:
When I impl my own comparator, and build in release mode.
The following compile error occurs.
undefined reference to `typeinfo for rocksdb::Comparator'

This fix allows users build with RTTI off when has their own comparator.
Closes https://github.com/facebook/rocksdb/pull/3008

Differential Revision: D6077354

Pulled By: yiwu-arbug

fbshipit-source-id: 914c26dbab72f0ad1f0e15f8666a3fb2f10bfed8
上级 8e63cad0
......@@ -21,7 +21,7 @@ class Slice;
// from multiple threads.
class Comparator {
public:
virtual ~Comparator();
virtual ~Comparator() {}
// Three-way comparison. Returns value:
// < 0 iff "a" < "b",
......
......@@ -17,8 +17,6 @@
namespace rocksdb {
Comparator::~Comparator() { }
namespace {
class BytewiseComparatorImpl : public Comparator {
public:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册