class BoolGen : public Gen
{
public:
- BoolGen(bool value) : m_value(value) {}
+ explicit BoolGen(bool value) : m_value(value) {}
virtual void run(yajl_gen_t* handle) const;
private:
bool m_value;
class StringGen : public Gen
{
public:
- StringGen(const std::string& value) : m_value(value) {}
+ explicit StringGen(const std::string& value) : m_value(value) {}
virtual void run(yajl_gen_t* handle) const;
private:
std::string m_value;
class NumberGen : public Gen
{
public:
- NumberGen(const std::string& value) : m_value(value) {}
+ explicit NumberGen(const std::string& value) : m_value(value) {}
template <typename T>
- NumberGen(const T& value) : m_value(x2str(value)) {}
+ explicit NumberGen(const T& value) : m_value(x2str(value)) {}
virtual void run(yajl_gen_t* handle) const;
private:
std::string m_value;