Make "pal_supports" not a function

But rather a template vardecl, as per C++14
This commit is contained in:
Nathaniel Filardo
2019-12-04 16:53:35 +00:00
parent 2567e8e4f3
commit 4d6759aca4
4 changed files with 5 additions and 8 deletions

View File

@@ -1120,7 +1120,7 @@ namespace snmalloc
else if constexpr (decommit_strategy == DecommitSuperLazy)
{
static_assert(
pal_supports<LowMemoryNotification, MemoryProvider>(),
pal_supports<LowMemoryNotification, MemoryProvider>,
"A lazy decommit strategy cannot be implemented on platforms "
"without low memory notifications");
}