- // Unfortunatly we need a specialization to convert "false" and "true"
- // to proper bool values. The culprit is that we use a non standard way
- // to store a bool value in a string, in particular we use "false" and
- // "true" instead of "0" and "1" due to how UCI protocol works.
-
- template<>
- bool get_option_value<bool>(const std::string& optionName) {
-
- if (options.find(optionName) == options.end())
- return false;
-
- return options[optionName].currentValue == "true";
- }