I accidentally discovered that I cannot invoke Tuple::KeyFromTuple on a const reference of a Tuple because this method is not made const. However this method seems never modify any data member of Tuple.
Besides, clang-tidy agrees with me
Clang-Tidy: Method 'KeyFromTuple' can be made const
I accidentally discovered that I cannot invoke
Tuple::KeyFromTuple
on a const reference of aTuple
because this method is not madeconst
. However this method seems never modify any data member ofTuple
.Besides, clang-tidy agrees with me