Skip to content

Commit e682b08

Browse files
Workaround for EDG
1 parent 0750a60 commit e682b08

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

stl/inc/atomic

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,9 +2804,17 @@ _EXPORT_STD struct atomic_flag { // flag with test-and-set semantics
28042804
#endif // _HAS_CXX20
28052805

28062806
#if 1 // TRANSITION, ABI
2807-
atomic<long> _Storage;
2807+
atomic<long> _Storage
2808+
#if !_HAS_CXX20 && defined(__EDG__)
2809+
{0L}
2810+
#endif // ^^^ workaround ^^^
2811+
;
28082812
#else // ^^^ don't break ABI / break ABI vvv
2809-
atomic<bool> _Storage;
2813+
atomic<bool> _Storage
2814+
#if !_HAS_CXX20 && defined(__EDG__)
2815+
{false}
2816+
#endif // ^^^ workaround ^^^
2817+
;
28102818
#endif // ^^^ break ABI ^^^
28112819
};
28122820

0 commit comments

Comments
 (0)