We want stringify a bool as "true" and "false",
not "1" and "0".
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
+ template<>
+ std::string Option::stringify(const bool& v)
+ {
+ return v ? "true" : "false";
+ }
+
Option::Option(const char* nm, const char* def, OptionType t)
: name(nm), defaultValue(def), currentValue(def), type(t), minValue(0), maxValue(0) {}
Option::Option(const char* nm, const char* def, OptionType t)
: name(nm), defaultValue(def), currentValue(def), type(t), minValue(0), maxValue(0) {}