WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
143303
Value assignment operator of Optional should be stricter
https://bugs.webkit.org/show_bug.cgi?id=143303
Summary
Value assignment operator of Optional should be stricter
Antti Koivisto
Reported
2015-04-01 05:21:56 PDT
struct Foo { mutable Optional<std::chrono::seconds> s; }; Foo foo, foo2; foo = foo2; doesn't build because it tries to use wrong operator=.
Attachments
patch
(1.25 KB, patch)
2015-04-01 05:25 PDT
,
Antti Koivisto
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2015-04-01 05:25:13 PDT
Created
attachment 249914
[details]
patch
Andreas Kling
Comment 2
2015-04-01 13:54:38 PDT
Comment on
attachment 249914
[details]
patch OK
Antti Koivisto
Comment 3
2015-04-01 14:02:53 PDT
https://trac.webkit.org/r182254
Myles C. Maxfield
Comment 4
2015-04-01 15:41:32 PDT
Where's your test!?!?!?!
Antti Koivisto
Comment 5
2015-04-02 08:55:13 PDT
I don't think something like this requires a test. There are no functional changes. Code like
http://trac.webkit.org/changeset/182271
just doesn't compile without this. Note that Optional is simply our version of std::optional which is likely to be in C++17.
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