From 57e77cc8158383e5496cf0886b4cd59e90551b4c Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Mon, 2 Dec 2024 21:46:57 +0000 Subject: [PATCH] add move semantics --- src/Core/Field.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Field.h b/src/Core/Field.h index 560002de4c6..ebccd366089 100644 --- a/src/Core/Field.h +++ b/src/Core/Field.h @@ -485,13 +485,13 @@ public: } template auto safeGet() const && { - return safeGet(); + return std::move(const_cast(this)->safeGet()); } template auto & safeGet() &; template auto safeGet() && { - return safeGet(); + return std::move(safeGet()); } bool operator< (const Field & rhs) const