C++ Logo

std-proposals

Advanced search

Re: [std-proposals] pass() replacement for: forward<>()

From: Peter Olsson <dataapa_at_[hidden]>
Date: Sat, 7 Jan 2023 09:35:45 +0100
> a.foo(move(list<int>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}));

> foo(move(ostream()));

Do you realize that using std::move on a temporary like this is pretty
pointless because it's already an rvalue?

Received on 2023-01-07 08:35:58