-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noexcept execution #738
noexcept execution #738
Conversation
Codecov Report
@@ Coverage Diff @@
## master #738 +/- ##
=======================================
Coverage 99.25% 99.25%
=======================================
Files 76 76
Lines 11571 11571
=======================================
Hits 11485 11485
Misses 86 86
Flags with carried forward coverage won't be shown. Click here to find out more.
|
GCC 10.2 with LTO, #716 vs noexcept
master vs noexcept
|
2c0a471
to
b035078
Compare
94791c7
to
858cb04
Compare
Clang11, master vs noexcept:
|
Clang11 #716 vs noexcept
master vs noexcept:
|
b8942e9
to
7e78d7b
Compare
858cb04
to
3062b4d
Compare
7e78d7b
to
fb256d1
Compare
3062b4d
to
b5ad31e
Compare
fb256d1
to
cff1342
Compare
8b8c66c
to
d306b86
Compare
cff1342
to
ce0536c
Compare
d306b86
to
ffda4ba
Compare
ce0536c
to
1996489
Compare
ffda4ba
to
61d30e2
Compare
int) -> ExecutionResult { | ||
return std::any_cast<Value>(host_context); | ||
int) noexcept -> ExecutionResult { | ||
return *std::any_cast<Value>(&host_context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed for noexcept and why wasn't this done in #716?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any_cast
taking a reference returns error by throwing bad_cast
exception.
Here it's changed to any_cast
taking a pointer, which returns nullptr
in case of error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay. Though this could have been done as reference in the first place in #716.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
16e12bc
to
0ad804f
Compare
61d30e2
to
f381ae7
Compare
f381ae7
to
4aaccab
Compare
4aaccab
to
3088493
Compare
3088493
to
cc6dced
Compare
Requires #716