Commit 5273dbe9 authored by Andrew Krieger's avatar Andrew Krieger Committed by Facebook Github Bot

Fix an ICE in MSVC from functional/Invoke.h

Summary:
Similar to https://github.com/facebook/folly/commit/29ffcc50981fd50dd2ab1a69f8a262c4b7c27ad4,
(D6254219), this was manifesting as random ICEs that repro consistently in a given file on a given machine,
but in different files for different machines and sometimes not at all.

Reviewed By: Orvid, yfeldblum

Differential Revision: D6303186

fbshipit-source-id: d91ad633352fc5c28640e71fd1539f6a4ba8f70f
parent 5b125edc
...@@ -86,9 +86,10 @@ using invoke_result_ = ...@@ -86,9 +86,10 @@ using invoke_result_ =
decltype(invoke(std::declval<F>(), std::declval<Args>()...)); decltype(invoke(std::declval<F>(), std::declval<Args>()...));
template <typename F, typename... Args> template <typename F, typename... Args>
using invoke_nothrow_ = std::integral_constant< struct invoke_nothrow_
bool, : std::integral_constant<
noexcept(invoke(std::declval<F>(), std::declval<Args>()...))>; bool,
noexcept(invoke(std::declval<F>(), std::declval<Args>()...))> {};
// from: http://en.cppreference.com/w/cpp/types/result_of, CC-BY-SA // from: http://en.cppreference.com/w/cpp/types/result_of, CC-BY-SA
......
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