X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/783ed451825ea18f1bec2502cb3fcecda653234a..af9452155f0892e1d2862efad4a87861ca60867d:/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..831b0e05 100644 --- a/libs/json/include/stg/json_generator.h +++ b/libs/json/include/stg/json_generator.h @@ -69,7 +69,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;