You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Executor requirements table and [async.system.exec.ops] both say:
Creates an object f1 initialized with DECAY_COPY(forward<Func>(f))
This performs an unnecessary copy, as DECAY_COPY already returns a new object, so this relies on elision to avoid two new objects being created. It also doesn't say what the type of f1 is, so calling f1() could do something entirely unrelated to f.
This seems simpler and more precise:
Creates an object f1 of type decay_t<Func>, initialized with forward<Func>(f).
The text was updated successfully, but these errors were encountered:
The Executor requirements table and [async.system.exec.ops] both say:
This performs an unnecessary copy, as
DECAY_COPY
already returns a new object, so this relies on elision to avoid two new objects being created. It also doesn't say what the type off1
is, so callingf1()
could do something entirely unrelated tof
.This seems simpler and more precise:
The text was updated successfully, but these errors were encountered: