git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable binaries and mods in test builds.
[stg.git]
/
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 4f1523fc92f61929616adc4971aa13ae3ef60fb4..4e8c870c296980cb5997f01b60e23b8bf3233a7d 100644
(file)
--- a/
libs/json/include/stg/json_generator.h
+++ b/
libs/json/include/stg/json_generator.h
@@
-26,8
+26,6
@@
#include <vector>
#include <utility>
#include <vector>
#include <utility>
-#include <boost/scoped_ptr.hpp>
-
struct yajl_gen_t;
namespace STG
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>
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;
virtual void run(yajl_gen_t* handle) const;
private:
std::string m_value;