I made the optional parameter for users to detect whether some parameters have been changed. So far it doesn't seem to be useful in practice, users can just save the old value and compare it themselves. Supporting this parameter requires a Same function to compare raw memory, which could be uninitialized. This results in many complains and false alarms from analyzers like clang-tidy, ubsan, valgrind.
I made the optional parameter for users to detect whether some parameters have been changed. So far it doesn't seem to be useful in practice, users can just save the old value and compare it themselves. Supporting this parameter requires a
Same
function to compare raw memory, which could be uninitialized. This results in many complains and false alarms from analyzers like clang-tidy, ubsan, valgrind.