urcs-sync / ralloc

Recoverable lock-free allocator based on LRMalloc
MIT License
45 stars 9 forks source link

Error when compiling with -Wall fix #6

Closed ChrisKjellqvist closed 5 years ago

ChrisKjellqvist commented 5 years ago

Preserves behavior AFAIK. Problem where compiling with -Wall causes a conflict between struct and class references. Lines 226 & 229

Line 226: struct GarbageCollection{

Line 269:

RP_PERSIST CrossPtr<char, SB_IDX> roots[MAX_ROOTS];                      
RP_PERSIST std::function<void(const CrossPtr<char, SB_IDX>&, GarbageCollection&)> roots_filter_func[MAX_ROOTS];
friend class GarbageCollection;                                          
BaseMeta() noexcept;