mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +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>
|
template <typename T>
|
||||||
struct Optional
|
struct Optional
|
||||||
{
|
{
|
||||||
bool hasValue;
|
|
||||||
T value;
|
T value;
|
||||||
|
bool hasValue;
|
||||||
|
|
||||||
Optional()
|
Optional()
|
||||||
: hasValue(false)
|
: hasValue(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user