Fix the type checker.

This commit is contained in:
David Chisnall
2021-08-23 11:15:11 +01:00
parent c07f5ea7be
commit 2d4a4caab7

View File

@@ -117,7 +117,7 @@ namespace snmalloc
"initialisation");
// Unreachable, but needed to keep the type checker happy in deducing
// the return type of this function.
return static_cast<void*>(nullptr);
return static_cast<decltype(action(core_alloc, args...))>(nullptr);
}
else
{