Core: Tuple::Get<> fix

git-svn-id: svn://ultimatepp.org/upp/trunk@15515 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-11-25 09:41:03 +00:00
parent b9eec0536a
commit f30ec1b3ca

View file

@ -122,9 +122,9 @@ private:
public:
template <int I>
auto Get() const { return GetFromTuple(*this, IndexI__<I>()); }
const auto& Get() const { return GetFromTuple(*this, IndexI__<I>()); }
template <int I>
auto Get() { return GetFromTuple(*this, IndexI__<I>()); }
auto& Get() { return GetFromTuple(*this, IndexI__<I>()); }
template <typename T> const T& Get() const { return GetFromTupleByType(*this, (T*)NULL); }
template <typename T> T& Get() { return GetFromTupleByType(*this, (T*)NULL); }