Commit 1e01c52
authored
apacheGH-46998: [C++] Fix mockfs.cc compiling error with C++23 (apache#46999)
### Rationale for this change
When compiling with C++23, mockfs.cc fails due to a static assertion failure, as described in issue apache#46998.
### What changes are included in this PR?
Move the implementation of AssignEntry after the definition of Entry.
### Are these changes tested?
Yes, I test the changes with C++23, and the error gone.
### Are there any user-facing changes?
No, the changes are within an anonymous namespace.
* GitHub Issue: apache#46998
Authored-by: Junwang Zhao <zhjwpku@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>1 parent 56c0e2f commit 1e01c52
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 111 | + | |
115 | 112 | | |
116 | 113 | | |
117 | 114 | | |
| |||
187 | 184 | | |
188 | 185 | | |
189 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
0 commit comments