X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..312c0eec08cfff18956ff4e238f6b6982bb0e721:/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;