mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Don't const& this one.
This commit is contained in:
parent
d866a0d683
commit
af684eebbf
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
const Id& field() const
|
Id field() const
|
||||||
{
|
{
|
||||||
static_assert(std::disjunction_v<std::is_same<std::decay_t<T>, Fields>...>);
|
static_assert(std::disjunction_v<std::is_same<std::decay_t<T>, Fields>...>);
|
||||||
return array[getIndex<T>()];
|
return array[getIndex<T>()];
|
||||||
|
|
Loading…
Add table
Reference in a new issue