Bug 132345 - Vector's std::initializer_list constructor should work for move-only types
Summary: Vector's std::initializer_list constructor should work for move-only types
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords:
Depends on:
Blocks: 132348
  Show dependency treegraph
 
Reported: 2014-04-29 11:18 PDT by Zan Dobersek
Modified: 2014-04-30 10:49 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.72 KB, patch)
2014-04-29 12:14 PDT, Zan Dobersek
andersca: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2014-04-29 11:18:27 PDT
Vector's std::initializer_list constructor should work for move-only, convertible types
Comment 1 Zan Dobersek 2014-04-29 12:14:58 PDT
Created attachment 230397 [details]
Patch
Comment 2 Anders Carlsson 2014-04-30 08:30:59 PDT
Comment on attachment 230397 [details]
Patch

I don't think this is a good idea. std::initializer_list isn't really meant for moving and std::vector doesn't allow this pattern.
Comment 3 Zan Dobersek 2014-04-30 10:49:10 PDT
Agreed.