ds/aba: make Cmp constructor explicit
For reasons unknown, this appeases MSVC using C++20.
This commit is contained in:
committed by
Matthew Parkinson
parent
77ebff6909
commit
82bc0e6852
@@ -85,6 +85,13 @@ namespace snmalloc
|
||||
Linked old;
|
||||
ABA* parent;
|
||||
|
||||
/*
|
||||
* MSVC apparently does not like the implicit constructor it creates when
|
||||
* asked to interpret its input as C++20; it rejects the construction up
|
||||
* in read(), above. Help it out by making the constructor explicit.
|
||||
*/
|
||||
Cmp(Linked old, ABA* parent) : old(old), parent(parent) {}
|
||||
|
||||
T* ptr()
|
||||
{
|
||||
return old.ptr;
|
||||
|
||||
Reference in New Issue
Block a user