summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/type.hpp')
-rw-r--r--include/mbgl/style/expression/type.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/style/expression/type.hpp b/include/mbgl/style/expression/type.hpp
index d801cd3ac9..da59eb001c 100644
--- a/include/mbgl/style/expression/type.hpp
+++ b/include/mbgl/style/expression/type.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <mbgl/util/optional.hpp>
+#include <mbgl/util/string.hpp>
#include <mbgl/util/variant.hpp>
#include <vector>
@@ -88,7 +89,7 @@ struct Array {
Array(Type itemType_, optional<std::size_t> N_) : itemType(std::move(itemType_)), N(std::move(N_)) {}
std::string getName() const {
if (N) {
- return "array<" + toString(itemType) + ", " + std::to_string(*N) + ">";
+ return "array<" + toString(itemType) + ", " + util::toString(*N) + ">";
} else if (itemType == Value) {
return "array";
} else {