Make "pal_supports" not a function
But rather a template vardecl, as per C++14
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user