Factored casts out of DLL/mpmcstack/mpscq.
Nicer use of decltype to constrain instances. Made a terminator method, to factor out casts.
This commit is contained in:
committed by
Matthew Parkinson
parent
4faf9f3bee
commit
2c613b4f8a
@@ -11,7 +11,7 @@ namespace snmalloc
|
||||
|
||||
private:
|
||||
static_assert(
|
||||
std::is_same<decltype(((T*)0)->next), std::atomic<T*>>::value,
|
||||
std::is_same<decltype(T::next), std::atomic<T*>>::value,
|
||||
"T->next must be a std::atomic<T*>");
|
||||
|
||||
ABA stack;
|
||||
|
||||
Reference in New Issue
Block a user