Commit e922be4
committed
fix: include order when building with -DCXXOPTS_USE_UNICODE
This change fixes a bizarre build failure that happens when trying to
build docling-parse with system cxxopts that define `CXXOPTS_USE_UNICODE`.
The error causes implicit conversion from boolean types to fail, causing
errors like this:
```
In file included from /build/docling_parse-5.7.0/src/parse.h:44,
from /build/docling_parse-5.7.0/app/parse_fonts.cpp:17:
/build/docling_parse-5.7.0/src/parse/config.h: In member function ‘nlohmann::json_abi_v3_12_0::json pdflib::decode_config::to_json() const’:
/build/docling_parse-5.7.0/src/parse/config.h:60:58: error: no matching function for call to ‘nlohmann::json_abi_v3_12_0::basic_json<>::basic_json(const bool&)’
60 | j["do_sanitization"] = nlohmann::json(do_sanitization);
| ^
```
Signed-off-by: Attila Oláh <attila@dorn.haus>1 parent efebb9f commit e922be4
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments