]> git.stg.codes - stg.git/blobdiff - libs/json/include/stg/json_generator.h
Remove x2str/unsigned2str in favor of std::to_string.
[stg.git] / libs / json / include / stg / json_generator.h
index 4f1523fc92f61929616adc4971aa13ae3ef60fb4..831b0e05a931d7735c1f410623995e1c6cd353a2 100644 (file)
@@ -69,7 +69,7 @@ class NumberGen : public Gen
     public:
         explicit NumberGen(const std::string& value) : m_value(value) {}
         template <typename T>
-        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;