mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Rearrange fields in the Optional struct for less wasted padding.
This commit is contained in:
@@ -27,8 +27,8 @@ namespace love
|
||||
template <typename T>
|
||||
struct Optional
|
||||
{
|
||||
bool hasValue;
|
||||
T value;
|
||||
bool hasValue;
|
||||
|
||||
Optional()
|
||||
: hasValue(false)
|
||||
|
||||
Reference in New Issue
Block a user