mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
More idiomatic signature for operator=()
Return a reference instead of void so to enable chained assignments like "p = q = Position(...);" Suggested by Rein Halbersma. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user