[*] amend AuGet

This commit is contained in:
Reece Wilson 2023-05-02 19:51:20 +01:00
parent 8a2beae2a3
commit 2d209e98f7

View File

@ -90,9 +90,27 @@ static auto AuMakeTuple(Args&&... args)
}
template <AuUInt N, typename... Args>
static auto &AuGet(Args&&... args)
static auto &&AuGet(Args&&... args)
{
return AURORA_RUNTIME_GET_TUPLE<N>(AuForward<Args>(args)...);
return AURORA_RUNTIME_GET_TUPLE<N>(AuForward<Args &&>(args)...);
}
template <AuUInt N, typename... Args>
static auto &AuGet(Args&... args)
{
return AURORA_RUNTIME_GET_TUPLE<N>(AuForward<Args &>(args)...);
}
template <AuUInt N, typename... Args>
static const auto &AuGet(const Args&... args)
{
return AURORA_RUNTIME_GET_TUPLE<N>(AuForward<const Args &>(args)...);
}
template <AuUInt N, typename... Args>
static const auto &&AuGet(const Args&&... args)
{
return AURORA_RUNTIME_GET_TUPLE<N>(AuForward<const Args &&>(args)...);
}
template <class... Args>