Commit bfec6d0
committed
Explicitly cast OCLMemOrderKind members from std::memory_order in C++20 case (#3254)
Clang does not like the current way of directly assigning members of one
enum to another and requires explicit static_cast on the way.
Compilation failed:
https://godbolt.org/z/3PYqsETdc
Compilation successful:
https://godbolt.org/z/bjeYK376s1 parent e44bdbb commit bfec6d0
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments