[*] MSVC cried about this. Are constexprs not evaluated in lambdas?

This commit is contained in:
Reece Wilson 2021-11-15 14:35:58 +00:00
parent d4ec3749e7
commit 2082a501ef

View File

@ -128,15 +128,6 @@ namespace Aurora::Async
pin->secretContext_.opt = &pin->resultValue_;
if constexpr (IsCallbackPtr)
{
if constexpr (AuIsBaseOfTemplate<std::function, decltype(pin->callback->onSuccess)>::value)
{
if (!pin->callback->onSuccess)
{
return;
}
}
pin->callback->onSuccess(pin->input, pin->resultValue_);
}
else