aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/optional.mxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/optional.mxx b/libbutl/optional.mxx
index e7e00dd..0f18c11 100644
--- a/libbutl/optional.mxx
+++ b/libbutl/optional.mxx
@@ -43,7 +43,7 @@ LIBBUTL_MODEXPORT namespace butl
template <typename T>
struct optional_data<T, false>
{
- struct empty {};
+ struct empty {char x;}; // Note: byte size is important to GCC.
union
{
@@ -86,7 +86,7 @@ LIBBUTL_MODEXPORT namespace butl
template <typename T>
struct optional_data<T, true>
{
- struct empty {};
+ struct empty {char x;}; // Note: byte size is important to GCC.
union
{