]> git.stg.codes - stg.git/blobdiff - libs/json/include/stg/json_generator.h
Replace boost::scoped_ptr with std::unique_ptr.
[stg.git] / libs / json / include / stg / json_generator.h
index 4f1523fc92f61929616adc4971aa13ae3ef60fb4..4e8c870c296980cb5997f01b60e23b8bf3233a7d 100644 (file)
@@ -26,8 +26,6 @@
 #include <vector>
 #include <utility>
 
-#include <boost/scoped_ptr.hpp>
-
 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 <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;