Commit 4ca7476
anonymous
Fix gcc modulize build. (#183)
When trying to compile `beman/execution` into `C++20 Modules`, g++ complains about `exposes TU-local entity get(...)` in `beman/execution/detail/completion_domain.hpp`, where
- `get` is defined to do compile-time type calculation
- `get` is a function-local lambda with local captures (that is to say, is TU-local)
- TU-local entities will indirectly affect all the entities which depends on it to be not `module-exportable`.
So we made a tiny change on `get` function, making it `constexpr` and `exportable`.1 parent a5843eb commit 4ca7476
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments