Bug 132345

Summary: Vector's std::initializer_list constructor should work for move-only types
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED WONTFIX    
Severity: Normal CC: benjamin, cmarcelo, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 132348    
Attachments:
Description Flags
Patch andersca: review-

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.