mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-30 05:07:05 +00:00
this change should address the FTBFS with Clang-17. turns out we are comparing a mutation with an optimized_optional<mutation>. and Clang-17 does not want to convert the LHS, which is a mutation to optimized_optional<mutation> for performing the comparison using operator==(const optimized_optional<mutation>&), desipte that optimized_optional(const T& obj) is not marked explicit. this is understandable. so, in this change, instead of relying on the implicit conversion, we just * check if the optional actually holds a value * and compare the value by deferencing the optional. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #13196