Commit 81a930f
authored
Adapt MemoryOrder definition for C++ 20 (#533)
When compiling the code with C++ 20 the following error message is
produced:
enumerator value for ‘MEMORY_ORDER_RELAXED’ must have integral or unscoped enumeration type
This is because with C++ 20 the type of those values changed to an enum
class. The `static_cast` extracts the numeric values so they can be used
here as before.1 parent b375049 commit 81a930f
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments