Bug 160618

Summary: WTF needs a variant implementation
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Sam Weinig
Reported 2016-08-05 16:18:41 PDT
WTF needs a variant implementation
Attachments
Patch (82.24 KB, patch)
2016-08-05 17:30 PDT, Sam Weinig
no flags
Patch (82.65 KB, patch)
2016-08-05 19:10 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2016-08-05 17:30:37 PDT
Sam Weinig
Comment 2 2016-08-05 19:10:40 PDT
Alex Christensen
Comment 3 2016-08-05 19:54:19 PDT
Comment on attachment 285473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285473&action=review Sweeeeet! > Tools/TestWebKitAPI/Tests/WTF/Variant.cpp:47 > + typedef std::experimental::variant<int, float, String> Variant; Do we want to type std::experimental::variant every time we use this in WebKit, or do we want to put this line in the header?
Sam Weinig
Comment 4 2016-08-05 20:18:05 PDT
(In reply to comment #3) > Comment on attachment 285473 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=285473&action=review > > Sweeeeet! > > > Tools/TestWebKitAPI/Tests/WTF/Variant.cpp:47 > > + typedef std::experimental::variant<int, float, String> Variant; > > Do we want to type std::experimental::variant every time we use this in > WebKit, or do we want to put this line in the header? I think for now we want to type it. As I start using it, if it becomes annoying, I will consider adding something like: namespace WTF { template<typename ... Types> using Variant = std::experimental::variant<Types>; } But I want to see first.
WebKit Commit Bot
Comment 5 2016-08-06 09:02:45 PDT
Comment on attachment 285473 [details] Patch Clearing flags on attachment: 285473 Committed r204227: <http://trac.webkit.org/changeset/204227>
WebKit Commit Bot
Comment 6 2016-08-06 09:02:48 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 7 2016-08-07 09:58:24 PDT
The failures in bug 160638 make it seem likely this is not quite working yet in the compilers used on the GTK and Windows bots.
Note You need to log in before you can comment on or make changes to this bug.