Commit bb743c35 authored by Matthias Braun's avatar Matthias Braun Committed by Facebook GitHub Bot

Work around clang ToT syntax error

Summary: Work around "incompatible pointer types assigning" errors reported by clang top-of-tree.

Reviewed By: Gownta

Differential Revision: D33482980

fbshipit-source-id: 2d7cf408c45ae96540c5c7779f8462f01d5b3498
parent 65098360
......@@ -964,11 +964,13 @@ class Expected final : expected_detail::ExpectedStorage<Value, Error> {
return *this;
}
#ifdef _MSC_VER
// Used only when an Expected is used with coroutines on MSVC
/* implicit */ Expected(const expected_detail::PromiseReturn<Value, Error>& p)
: Expected{} {
p.promise_->value_ = this;
}
#endif
template <class... Ts FOLLY_REQUIRES_TRAILING(
std::is_constructible<Value, Ts&&...>::value)>
......
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