diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-03 23:35:30 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:32 +0200 |
commit | 2c953d93672aa42e722bfc709ce9129cfa51a11b (patch) | |
tree | fcebb042102aca866b26e4557126a4955eaca4c7 /src/core | |
parent | a35c5da4bee1179929849b565caa430cbdee1e60 (diff) |
clang compatibility: do not use anonymous struct
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/common/Variant.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/core/common/Variant.hpp b/src/core/common/Variant.hpp index 4cdc94f..df72fca 100644 --- a/src/core/common/Variant.hpp +++ b/src/core/common/Variant.hpp @@ -76,8 +76,11 @@ enum class VariantType : uint8_t { * was found in 8 Bytes. */ struct VariantMetadata { - union { - struct { + /** + * Structure holding the actual metadata. + */ + struct Meta { + /** * Field used to store the type of a Variant (4 Bit, space for 16 * objects). @@ -100,7 +103,13 @@ struct VariantMetadata { * Unique id of the file from which the variant was parsed. */ uint16_t locationSourceId : 16; // 65.000 Source files - } data; + }; + + union { + /** + * The actual metadata. + */ + Meta data; /** * The metadata as 64 Bit value. |