]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.h
More idiomatic signature for operator=()
[stockfish] / src / ucioption.h
index c57cf021e8c681ab7c389cac8c5143e53ee97c61..0be8c7e39d4734b3cbf8ba918a4c0958ac08d4b9 100644 (file)
@@ -38,7 +38,7 @@ public:
   UCIOption(const char* v, Fn* = NULL);
   UCIOption(int v, int min, int max, Fn* = NULL);
 
-  void operator=(const std::string& v);
+  UCIOption& operator=(const std::string& v);
 
   operator int() const {
     assert(type == "check" || type == "spin");