Summary:
MSVC has issues with the way it was written, so just use the standard version instead.
Upstream bug report: https://developercommunity.visualstudio.com/content/problem/80433/incorrect-error-c2462-cannot-define-a-type-in-a-ne.html
Reviewed By: yfeldblum
Differential Revision:
D5427029
fbshipit-source-id:
ae3737175d5b8e9738ed6b9573412d1d566b0e1c
template <typename... Args>
explicit Core(in_place_t, Args&&... args) noexcept(
- noexcept(::new (nullptr) T(std::declval<Args&&>()...)))
+ std::is_nothrow_constructible<T, Args&&...>::value)
: result_(in_place, in_place, std::forward<Args>(args)...),
fsm_(State::OnlyResult),
attached_(1) {}