WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160618
WTF needs a variant implementation
https://bugs.webkit.org/show_bug.cgi?id=160618
Summary
WTF needs a variant implementation
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
Details
Formatted Diff
Diff
Patch
(82.65 KB, patch)
2016-08-05 19:10 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2016-08-05 17:30:37 PDT
Created
attachment 285468
[details]
Patch
Sam Weinig
Comment 2
2016-08-05 19:10:40 PDT
Created
attachment 285473
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug