From 304cf25149f6f741bf575aea2b8b1a23b15a6292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 21 Nov 2023 19:14:26 +0300 Subject: [PATCH] =?UTF-8?q?mdbx++:=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20`slice::invalid()`?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BE=D1=82?= =?UTF-8?q?=D0=B2=D1=80=D0=B0=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D1=82=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B2=D0=B5=D1=80=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B8=D1=81?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20API.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h++ | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index 307e4175..175ef2ca 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -4510,10 +4510,12 @@ public: struct move_result : public pair_result { inline move_result(const cursor &cursor, bool throw_notfound); move_result(cursor &cursor, move_operation operation, bool throw_notfound) - : move_result(cursor, operation, slice(), slice(), throw_notfound) {} + : move_result(cursor, operation, slice::invalid(), slice::invalid(), + throw_notfound) {} move_result(cursor &cursor, move_operation operation, const slice &key, bool throw_notfound) - : move_result(cursor, operation, key, slice(), throw_notfound) {} + : move_result(cursor, operation, key, slice::invalid(), + throw_notfound) {} inline move_result(cursor &cursor, move_operation operation, const slice &key, const slice &value, bool throw_notfound); @@ -4524,10 +4526,11 @@ public: struct estimate_result : public pair { ptrdiff_t approximate_quantity; estimate_result(const cursor &cursor, move_operation operation) - : estimate_result(cursor, operation, slice(), slice()) {} + : estimate_result(cursor, operation, slice::invalid(), + slice::invalid()) {} estimate_result(const cursor &cursor, move_operation operation, const slice &key) - : estimate_result(cursor, operation, key, slice()) {} + : estimate_result(cursor, operation, key, slice::invalid()) {} inline estimate_result(const cursor &cursor, move_operation operation, const slice &key, const slice &value); estimate_result(const estimate_result &) noexcept = default; @@ -4631,7 +4634,7 @@ public: } move_result move(move_operation operation, const slice &key, bool throw_notfound) { - return move_result(*this, operation, key, throw_notfound); + return move_result(*this, operation, key, slice::invalid(), throw_notfound); } move_result move(move_operation operation, const slice &key, const slice &value, bool throw_notfound) {