X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..e3e2d6326db86d7ca22d2cba1193aa64a8e33b2d:/libs/json/include/stg/json_generator.h diff --git a/libs/json/include/stg/json_generator.h b/libs/json/include/stg/json_generator.h index 4f1523fc..4e8c870c 100644 --- a/libs/json/include/stg/json_generator.h +++ b/libs/json/include/stg/json_generator.h @@ -26,8 +26,6 @@ #include #include -#include - struct yajl_gen_t; namespace STG @@ -69,7 +67,7 @@ class NumberGen : public Gen public: explicit NumberGen(const std::string& value) : m_value(value) {} template - explicit NumberGen(const T& value) : m_value(x2str(value)) {} + explicit NumberGen(const T& value) : m_value(std::to_string(value)) {} virtual void run(yajl_gen_t* handle) const; private: std::string m_value;