Y
Hacker News
new
|
ask
|
show
|
jobs
by
dkersten
2446 days ago
Sorry, I edited right after hitting reply to clarify that I'm assuming the intention was to std::move the unique_ptr in, since it was T&& and not T&. Would that still not work?
1 comments
Rusky
2446 days ago
It would still not work. All std::move does is cast to T&&, enabling overload resolution to pick a function with T&& as its parameter type.
link
dkersten
2446 days ago
Thanks for explaining!
link