mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +03:00
Optional: put the bool m_valid after the content to improve packing
This commit is contained in:
parent
bf02838816
commit
ea67724ff5
@ -78,8 +78,8 @@ public:
|
||||
private:
|
||||
void destruct_ifn() { if (m_valid) m_value.~T(); }
|
||||
|
||||
bool m_valid;
|
||||
union { T m_value; };
|
||||
bool m_valid;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user