From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 25 Feb 2019 18:33:05 +0300 From: Vladimir Davydov Subject: Re: [PATCH v3 3/7] lib: introduce BPS_TREE_IDENTICAL custom comparator Message-ID: <20190225153305.dnio34akvundg5pd@esperanza> References: <386c6c9b84b97292ec0f76fbd1dcf14152889b85.1550849496.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <386c6c9b84b97292ec0f76fbd1dcf14152889b85.1550849496.git.kshcherbatov@tarantool.org> To: Kirill Shcherbatov Cc: tarantool-patches@freelists.org List-ID: 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(-) Pushed to 2.1.