
7 Dec
2024
7 Dec
'24
12:46 a.m.
On Sat, Dec 7, 2024 at 1:29 AM Andrey Semashev via Boost < boost@lists.boost.org> wrote:
On 12/7/24 03:23, Ivan Matek wrote:
It may be UB if the hasher's result() has an rvalue-qualified overload that moves parts of its internal representation out in the returned hash value.
I believe in code we will not call && overload. One reason is I think is that named rvalue reference is lvalue reference Second is that we are anyway calling std::move on wrapper, not on stored member, i.e. wrapper result function does not destroy/move/reset member. auto result() { return h.result(); }