Skip to content

Commit

Permalink
[minor] Fixed issue with TOptional and lifetime management of the hel…
Browse files Browse the repository at this point in the history
…d value due to not scoping the instance of T in a union.
  • Loading branch information
RawPowerLaxity committed Jan 21, 2024
1 parent cc9d9b6 commit e261325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SIDFactoryII/source/foundation/base/toptional.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ namespace Foundation

private:
bool m_IsValid;
T m_Value;

union
{
T m_Value;
};
};
}

0 comments on commit e261325

Please sign in to comment.