diff --git a/include/cppgc/custom-space.h b/include/cppgc/custom-space.h index 8c2dd592fe..757c4fde15 100644 --- a/include/cppgc/custom-space.h +++ b/include/cppgc/custom-space.h @@ -48,15 +48,18 @@ class CustomSpaceBase { template class CustomSpace : public CustomSpaceBase { public: + /** + * Compaction is only supported on spaces that manually manage slots + * recording. + */ + static constexpr bool kSupportsCompaction = false; + CustomSpaceIndex GetCustomSpaceIndex() const final { return ConcreteCustomSpace::kSpaceIndex; } bool IsCompactable() const final { return ConcreteCustomSpace::kSupportsCompaction; } - - protected: - static constexpr bool kSupportsCompaction = false; }; /**