Merge pull request #77342 from RandomShaper/fix_build_bad_compiler

Fix compile issue in not very conformant compilers
This commit is contained in:
Rémi Verschelde 2023-05-22 13:56:19 +02:00
commit b85269cd8b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -52,13 +52,17 @@ protected:
// During group processing, these are thread-safe.
// Outside group processing, these avoid the cost of sync by working as plain primitive types.
union MTFlag {
SafeFlag mt{};
SafeFlag mt;
bool st;
MTFlag() :
mt{} {}
};
template <class T>
union MTNumeric {
SafeNumeric<T> mt{};
SafeNumeric<T> mt;
T st;
MTNumeric() :
mt{} {}
};
public: