X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=cc19e23610be28ed6879ff3d5ea095eb1dac031e;hp=37c0d40f9954f700107261f4c796d6c1aee8ea54;hb=e5068c4734a9a8ba6f8cdb03ec787b76755d57b2;hpb=35010b4938a3425ad56f97e1eae3834cb99d7326 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 37c0d40f..cc19e236 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -305,6 +305,12 @@ namespace { return ss.str(); } + 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) {}