[core] Avoid public dtoa.hpp include

This commit is contained in:
John Firebaugh
2017-02-21 13:43:03 -08:00
committed by Konstantin Käfer
parent 0be8309446
commit 3db027751e
3 changed files with 24 additions and 13 deletions

20
src/mbgl/util/string.cpp Normal file
View File

@@ -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