Commit 609de01
committed
Fix missing self-contained header includes
Some stricter build environments require every public header to be
self-contained. In other words, including and compiling any public header
on its own must not depend on another header having happened to be included
first.
`SegmentTagged.hpp` previously worked under the common include paths used in
this repository, but it did not declare `DictTrie` when compiled in isolation.
Similarly, `HMMSegment.hpp` indirectly depended on `DictTrie.hpp` for
`MIN_DOUBLE`.
These implicit include dependencies can become real build failures when using
stricter header parsing, modular builds, PCH/IWYU workflows, or simply a
different include order. Add the missing direct includes so the affected
headers are self-contained.1 parent eed6bfe commit 609de01
3 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments