X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=e117e44c862205e37f7901a0e0cc59e3a97b4bf7;hp=dbab6fc106c833652069b5185b73339f2862db63;hb=0d8a4c7565390c9f7ccc99799a76a19fb50e6f7b;hpb=d2caba1f6649328a584b3bc24478b43e49d3fae5 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index dbab6fc1..e117e44c 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -139,13 +139,12 @@ Option::operator std::string() const { /// operator<<() inits options and assigns idx in the correct printing order -Option& Option::operator<<(const Option& o) { +void Option::operator<<(const Option& o) { - static size_t index = 0; + static size_t insert_order = 0; *this = o; - idx = index++; - return *this; + idx = insert_order++; }