summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-09-19 00:46:57 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-19 14:31:16 +0200
commita43319b6c9c24ed9b88af336c74a4d60e76b6fc3 (patch)
treeb49499423f42cd95e3a1ff3ecbdc90f687859b11 /core/variant/variant_construct.cpp
parent63c0dc690e06731224e88911ed16d1b798b681b5 (diff)
downloadredot-engine-a43319b6c9c24ed9b88af336c74a4d60e76b6fc3.tar.gz
Restore numeric from String constructors
Diffstat (limited to 'core/variant/variant_construct.cpp')
-rw-r--r--core/variant/variant_construct.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp
index d048f45737..78ae2cefaa 100644
--- a/core/variant/variant_construct.cpp
+++ b/core/variant/variant_construct.cpp
@@ -68,11 +68,13 @@ void Variant::_register_variant_constructors() {
add_constructor<VariantConstructor<int64_t, int64_t>>(sarray("from"));
add_constructor<VariantConstructor<int64_t, double>>(sarray("from"));
add_constructor<VariantConstructor<int64_t, bool>>(sarray("from"));
+ add_constructor<VariantConstructorFromString<int64_t>>(sarray("from"));
add_constructor<VariantConstructNoArgs<double>>(sarray());
add_constructor<VariantConstructor<double, double>>(sarray("from"));
add_constructor<VariantConstructor<double, int64_t>>(sarray("from"));
add_constructor<VariantConstructor<double, bool>>(sarray("from"));
+ add_constructor<VariantConstructorFromString<double>>(sarray("from"));
add_constructor<VariantConstructNoArgs<String>>(sarray());
add_constructor<VariantConstructor<String, String>>(sarray("from"));