Rearrange fields in the Optional struct for less wasted padding.

This commit is contained in:
Alex Szpakowski
2019-06-25 20:08:32 -03:00
parent 9833515eba
commit 62d6573216
+1 -1
View File
@@ -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)