Added
Link Here
|
1 |
--- include/simdjson/dom/serialization.h.orig 2023-12-01 18:56:12 UTC |
2 |
+++ include/simdjson/dom/serialization.h |
3 |
@@ -57,15 +57,15 @@ class base_formatter { (public) |
4 |
simdjson_inline void one_char(char c); |
5 |
|
6 |
simdjson_inline void call_print_newline() { |
7 |
- this->print_newline(); |
8 |
+ static_cast<formatter*>(this)->print_newline(); |
9 |
} |
10 |
|
11 |
simdjson_inline void call_print_indents(size_t depth) { |
12 |
- this->print_indents(depth); |
13 |
+ static_cast<formatter*>(this)->print_indents(depth); |
14 |
} |
15 |
|
16 |
simdjson_inline void call_print_space() { |
17 |
- this->print_space(); |
18 |
+ static_cast<formatter*>(this)->print_space(); |
19 |
} |
20 |
|
21 |
protected: |