X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.h;h=d0d655cd9f8825023b5e148edfb684904efba42f;hp=b6ad959cc353a9e5a3579d2973410fc2d88d2b10;hb=22b9307aba0f78aa92abcf85e807af8b64011c7a;hpb=0bf475ec55cf39e6b6959d715ce20aa8df41f621 diff --git a/src/ucioption.h b/src/ucioption.h index b6ad959c..d0d655cd 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 : public std::map { OptionsMap(); std::string print_all() const; };