Commit 82444d7
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 66d53a4 commit 82444d7
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments