summaryrefslogtreecommitdiff
path: root/src/core/common/Variant.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Variant.hpp')
-rw-r--r--src/core/common/Variant.hpp15
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.