mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Tuple::Get<> fix
git-svn-id: svn://ultimatepp.org/upp/trunk@15515 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b9eec0536a
commit
f30ec1b3ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue