Skip to content

Commit

Permalink
Try forward declaring freelist::Builder to appease macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf-msr committed Sep 10, 2024
1 parent 3856e0a commit 1520b2d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/snmalloc/mem/freelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1520b2d

Please sign in to comment.