summaryrefslogtreecommitdiff
path: root/src/mbgl/util
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-02-21 13:43:03 -0800
committerKonstantin Käfer <mail@kkaefer.com>2017-03-28 13:53:19 +0200
commit3db027751ed79832fccd769f2f5754d24c342a8a (patch)
tree482dcc90c041efe5788be95d30e23fca0408b151 /src/mbgl/util
parent0be8309446cd165fa34878069efc97dbd1082c0b (diff)
downloadqtlocation-mapboxgl-3db027751ed79832fccd769f2f5754d24c342a8a.tar.gz
[core] Avoid public dtoa.hpp include
Diffstat (limited to 'src/mbgl/util')
-rw-r--r--src/mbgl/util/string.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mbgl/util/string.cpp b/src/mbgl/util/string.cpp
new file mode 100644
index 0000000000..4738209382
--- /dev/null
+++ b/src/mbgl/util/string.cpp
@@ -0,0 +1,20 @@
+#include <mbgl/util/string.hpp>
+#include <mbgl/util/dtoa.hpp>
+
+namespace mbgl {
+namespace util {
+
+std::string toString(float num) {
+ return dtoa(num);
+}
+
+std::string toString(double num) {
+ return dtoa(num);
+}
+
+std::string toString(long double num) {
+ return dtoa(num);
+}
+
+} // namespace util
+} // namespace mbgl