ds/aba: make Cmp constructor explicit

For reasons unknown, this appeases MSVC using C++20.
This commit is contained in:
Nathaniel Filardo
2020-09-07 11:56:05 +01:00
committed by Matthew Parkinson
parent 77ebff6909
commit 82bc0e6852

View File

@@ -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;