From f30ec1b3ca90630f2272f4b4192a2cb130eff025 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 25 Nov 2020 09:41:03 +0000 Subject: [PATCH] Core: Tuple::Get<> fix git-svn-id: svn://ultimatepp.org/upp/trunk@15515 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Tuple.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Core/Tuple.h b/uppsrc/Core/Tuple.h index be577611f..f85648342 100644 --- a/uppsrc/Core/Tuple.h +++ b/uppsrc/Core/Tuple.h @@ -122,9 +122,9 @@ private: public: template - auto Get() const { return GetFromTuple(*this, IndexI__()); } + const auto& Get() const { return GetFromTuple(*this, IndexI__()); } template - auto Get() { return GetFromTuple(*this, IndexI__()); } + auto& Get() { return GetFromTuple(*this, IndexI__()); } template const T& Get() const { return GetFromTupleByType(*this, (T*)NULL); } template T& Get() { return GetFromTupleByType(*this, (T*)NULL); }