summaryrefslogtreecommitdiffstats
path: root/core/variant.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-09-02 15:26:28 -0300
committerGeorge Marques <george@gmarqu.es>2020-09-02 16:23:57 -0300
commit1a29e94c52c0a7eeab4f7f2baee92a3ce282c1e1 (patch)
tree4a08819d6226c062e33140ace7491cca973217c9 /core/variant.h
parent358e209fa049887fd4212c52c9faba0ca9d6e111 (diff)
downloadredot-engine-1a29e94c52c0a7eeab4f7f2baee92a3ce282c1e1.tar.gz
Add VariantInternal class
This is used to get a direct pointer for the data inside a Variant. Added as another class instead of in Variant directly because this should only be used in special cases, so use must be explicit.
Diffstat (limited to 'core/variant.h')
-rw-r--r--core/variant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant.h b/core/variant.h
index 50b7a21eda..27a709b473 100644
--- a/core/variant.h
+++ b/core/variant.h
@@ -120,6 +120,7 @@ public:
private:
friend struct _VariantCall;
+ friend class VariantInternal;
// Variant takes 20 bytes when real_t is float, and 36 if double
// it only allocates extra memory for aabb/matrix.