From 1520b2dcc1fd898a12d3451aa6997fccdbc98abe Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Tue, 10 Sep 2024 10:34:31 -0400 Subject: [PATCH] Try forward declaring freelist::Builder to appease macos-14 --- src/snmalloc/mem/freelist.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/snmalloc/mem/freelist.h b/src/snmalloc/mem/freelist.h index 7b0e8e3b3..56b18f5a8 100644 --- a/src/snmalloc/mem/freelist.h +++ b/src/snmalloc/mem/freelist.h @@ -57,6 +57,13 @@ namespace snmalloc namespace freelist { + template< + bool RANDOM, + bool TRACK_LENGTH = RANDOM, + SNMALLOC_CONCEPT(capptr::IsBound) BView = capptr::bounds::Alloc, + SNMALLOC_CONCEPT(capptr::IsBound) BQueue = capptr::bounds::AllocWild> + class Builder; + class Object { public: @@ -667,9 +674,9 @@ namespace snmalloc */ template< bool RANDOM, - bool TRACK_LENGTH = RANDOM, - SNMALLOC_CONCEPT(capptr::IsBound) BView = capptr::bounds::Alloc, - SNMALLOC_CONCEPT(capptr::IsBound) BQueue = capptr::bounds::AllocWild> + bool TRACK_LENGTH, + SNMALLOC_CONCEPT(capptr::IsBound) BView, + SNMALLOC_CONCEPT(capptr::IsBound) BQueue> class Builder { static_assert(!RANDOM || TRACK_LENGTH);