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

@@ -61,8 +61,5 @@ namespace snmalloc
* Query whether the PAL supports a specific feature.
*/
template<PalFeatures F, typename PAL = Pal>
constexpr static bool pal_supports()
{
return (PAL::pal_features & F) == F;
}
constexpr static bool pal_supports = (PAL::pal_features & F) == F;
} // namespace snmalloc