On Fri, Feb 22, 2019 at 06:42:28PM +0300, Kirill Shcherbatov wrote:
Introduce a macro BPS_TREE_IDENTICAL for BPS TREE class. This
makes possible to define custom comparators for stucture-based
leafs.
Previously, a C++ comparison operator "!=" override was used for
this purpose. Due to the fact that we are not going to rework on
C++ C-only components of Tarantool like memtx_tree, we needed a
way to make complex structures comparisons using preprocessor.
Needed for #3961
---
src/lib/salad/bps_tree.h | 82 +++++++++++++++++++++++-----------
test/unit/bps_tree_iterator.cc | 16 ++++---
2 files changed, 65 insertions(+), 33 deletions(-)