Commit f0dfe0f6 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Determine noexcept'ness of folly::Optional with std::is_nothrow_constructible

Summary: Because MSVC is not happy about how it's written now.

Reviewed By: yfeldblum

Differential Revision: D5378740

fbshipit-source-id: 8b77d1a05da75b331e0cb72bd0ad859b89e54b36
parent 9c5c5801
...@@ -128,8 +128,8 @@ class Optional { ...@@ -128,8 +128,8 @@ class Optional {
} }
template <typename... Args> template <typename... Args>
explicit Optional(in_place_t, Args&&... args) explicit Optional(in_place_t, Args&&... args) noexcept(
noexcept(noexcept(::new (nullptr) Value(std::declval<Args&&>()...))) { std::is_nothrow_constructible<Value, Args...>::value) {
construct(std::forward<Args>(args)...); construct(std::forward<Args>(args)...);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment