WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 264082
264122
NativePromise::all/allSettled can't take a rvalue vector.
https://bugs.webkit.org/show_bug.cgi?id=264122
Summary
NativePromise::all/allSettled can't take a rvalue vector.
Jean-Yves Avenard [:jya]
Reported
2023-11-02 17:13:05 PDT
NativePromise::all/allSettled take a Vector<T>& rather than a const Vector<T>& ; so you can't use them with a rvalue parameter. Preventing to do things like: ``` SourceBuffer::ComputeSeekPromise::all(RunLoop::main(), WTF::map(*m_activeSourceBuffers, [&](auto&& sourceBuffer) { return sourceBuffer->computeSeekTime(seekTarget); })) ```
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-11-02 17:13:26 PDT
<
rdar://problem/117881732
>
Jean-Yves Avenard [:jya]
Comment 2
2023-11-02 23:36:33 PDT
Will be done by
bug 264082
*** This bug has been marked as a duplicate of
bug 264082
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug