Merge pull request #77342 from RandomShaper/fix_build_bad_compiler
Fix compile issue in not very conformant compilers
This commit is contained in:
commit
b85269cd8b
1 changed files with 6 additions and 2 deletions
|
@ -52,13 +52,17 @@ protected:
|
||||||
// During group processing, these are thread-safe.
|
// During group processing, these are thread-safe.
|
||||||
// Outside group processing, these avoid the cost of sync by working as plain primitive types.
|
// Outside group processing, these avoid the cost of sync by working as plain primitive types.
|
||||||
union MTFlag {
|
union MTFlag {
|
||||||
SafeFlag mt{};
|
SafeFlag mt;
|
||||||
bool st;
|
bool st;
|
||||||
|
MTFlag() :
|
||||||
|
mt{} {}
|
||||||
};
|
};
|
||||||
template <class T>
|
template <class T>
|
||||||
union MTNumeric {
|
union MTNumeric {
|
||||||
SafeNumeric<T> mt{};
|
SafeNumeric<T> mt;
|
||||||
T st;
|
T st;
|
||||||
|
MTNumeric() :
|
||||||
|
mt{} {}
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue