X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.h;h=c764ac8bb088636cb8b9aec08aa2e39a2d35773a;hp=b6ad959cc353a9e5a3579d2973410fc2d88d2b10;hb=3a76163aba434fb2edaa333aca506e1eb795a75e;hpb=0bf475ec55cf39e6b6959d715ce20aa8df41f621 diff --git a/src/ucioption.h b/src/ucioption.h index b6ad959c..c764ac8b 100644 --- a/src/ucioption.h +++ b/src/ucioption.h @@ -36,7 +36,7 @@ public: template T value() const; private: - friend class OptionsMap; + friend struct OptionsMap; std::string defaultValue, currentValue, type; int minValue, maxValue; @@ -44,15 +44,14 @@ private: }; -/// Custom comparator because UCI options should not be case sensitive +/// Custom comparator because UCI options should be case insensitive struct CaseInsensitiveLess { bool operator() (const std::string&, const std::string&) const; }; /// Our options container is actually a map with a customized c'tor -class OptionsMap : public std::map { -public: +struct OptionsMap : std::map { OptionsMap(); std::string print_all() const; };