diff options
Diffstat (limited to 'src/mbgl/style/expression/coercion.cpp')
-rw-r--r-- | src/mbgl/style/expression/coercion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/expression/coercion.cpp b/src/mbgl/style/expression/coercion.cpp index f2042ffd8f..8ed8e160dd 100644 --- a/src/mbgl/style/expression/coercion.cpp +++ b/src/mbgl/style/expression/coercion.cpp @@ -1,6 +1,7 @@ #include <mbgl/style/expression/coercion.hpp> #include <mbgl/style/expression/check_subtype.hpp> #include <mbgl/style/expression/util.hpp> +#include <mbgl/util/string.hpp> namespace mbgl { namespace style { @@ -11,7 +12,7 @@ EvaluationResult toNumber(const Value& v) { [](const double f) -> optional<double> { return f; }, [](const std::string& s) -> optional<double> { try { - return std::stof(s); + return util::stof(s); } catch(std::exception) { return optional<double>(); } |