Skip to content

Commit

Permalink
Workaround for EDG
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja committed Nov 24, 2024
1 parent 0750a60 commit e682b08
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions stl/inc/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -2804,9 +2804,17 @@ _EXPORT_STD struct atomic_flag { // flag with test-and-set semantics
#endif // _HAS_CXX20

#if 1 // TRANSITION, ABI
atomic<long> _Storage;
atomic<long> _Storage
#if !_HAS_CXX20 && defined(__EDG__)
{0L}
#endif // ^^^ workaround ^^^
;
#else // ^^^ don't break ABI / break ABI vvv
atomic<bool> _Storage;
atomic<bool> _Storage
#if !_HAS_CXX20 && defined(__EDG__)
{false}
#endif // ^^^ workaround ^^^
;
#endif // ^^^ break ABI ^^^
};

Expand Down

0 comments on commit e682b08

Please sign in to comment.