NFC: move some capptr utility functions to that namespace
We'll want user_address_control_type in some particular PALs, so it can't live in pal.h. While here, make the spelling be capptr::is_spatial_refinement.
This commit is contained in:
committed by
Nathaniel Wesley Filardo
parent
1de28eead7
commit
dba795ac6f
@@ -197,7 +197,7 @@ namespace snmalloc
|
||||
{
|
||||
// Impose constraints on bounds annotations.
|
||||
static_assert(BIn::spatial >= capptr::dimension::Spatial::Chunk);
|
||||
static_assert(capptr_is_spatial_refinement<BIn, BOut>());
|
||||
static_assert(capptr::is_spatial_refinement<BIn, BOut>());
|
||||
|
||||
UNUSED(size);
|
||||
return CapPtr<T, BOut>(a.template as_static<T>().unsafe_capptr);
|
||||
|
||||
Reference in New Issue
Block a user