diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-21 13:43:03 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-03-28 13:53:19 +0200 |
commit | 3db027751ed79832fccd769f2f5754d24c342a8a (patch) | |
tree | 482dcc90c041efe5788be95d30e23fca0408b151 /include/mbgl/util | |
parent | 0be8309446cd165fa34878069efc97dbd1082c0b (diff) | |
download | qtlocation-mapboxgl-3db027751ed79832fccd769f2f5754d24c342a8a.tar.gz |
[core] Avoid public dtoa.hpp include
Diffstat (limited to 'include/mbgl/util')
-rw-r--r-- | include/mbgl/util/string.hpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/mbgl/util/string.hpp b/include/mbgl/util/string.hpp index 202554c3a7..de061647b5 100644 --- a/include/mbgl/util/string.hpp +++ b/include/mbgl/util/string.hpp @@ -4,8 +4,6 @@ #include <cassert> #include <exception> -#include <mbgl/util/dtoa.hpp> - namespace mbgl { namespace util { @@ -22,17 +20,9 @@ inline std::string toString(uint8_t num) { return std::to_string(unsigned(num)); } -inline std::string toString(float num) { - return dtoa(num); -} - -inline std::string toString(double num) { - return dtoa(num); -} - -inline std::string toString(long double num) { - return dtoa(num); -} +std::string toString(float); +std::string toString(double); +std::string toString(long double); inline std::string toString(std::exception_ptr error) { assert(error); |