summaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authorswarmer <[email protected]>2025-11-20 03:58:33 +0300
committerswarmer <[email protected]>2025-11-20 04:12:51 +0300
commit08853b2ac5875a70f83431613fa5738281cb91f4 (patch)
tree8b76d0b9b95a3046dec87c3364828aefebe81d65 /library/cpp/json
parent466d51234f4611c7c88bc97368713e081a286113 (diff)
forward decalaration for the TJsonValue
commit_hash:856a8b4b61af064aec80aa907e2784f9d4ffce61
Diffstat (limited to 'library/cpp/json')
-rw-r--r--library/cpp/json/writer/fwd.h5
-rw-r--r--library/cpp/json/writer/json.h6
-rw-r--r--library/cpp/json/writer/json_value.h3
3 files changed, 8 insertions, 6 deletions
diff --git a/library/cpp/json/writer/fwd.h b/library/cpp/json/writer/fwd.h
new file mode 100644
index 00000000000..752083547c7
--- /dev/null
+++ b/library/cpp/json/writer/fwd.h
@@ -0,0 +1,5 @@
+#pragma once
+
+namespace NJson {
+ class TJsonValue;
+} // namespace NJson
diff --git a/library/cpp/json/writer/json.h b/library/cpp/json/writer/json.h
index 4a6e0af8129..6e2f6c28f9c 100644
--- a/library/cpp/json/writer/json.h
+++ b/library/cpp/json/writer/json.h
@@ -1,5 +1,7 @@
#pragma once
+#include <library/cpp/json/writer/fwd.h>
+
#include <util/generic/noncopyable.h>
#include <util/generic/ptr.h>
#include <util/generic/string.h>
@@ -8,10 +10,6 @@
#include <util/stream/str.h>
#include <util/string/cast.h>
-namespace NJson {
- class TJsonValue;
-} // namespace NJson
-
namespace NJsonWriter {
enum EJsonEntity: ui8 {
JE_OUTER_SPACE = 1,
diff --git a/library/cpp/json/writer/json_value.h b/library/cpp/json/writer/json_value.h
index ec919697dc7..6b20af7f4cb 100644
--- a/library/cpp/json/writer/json_value.h
+++ b/library/cpp/json/writer/json_value.h
@@ -1,5 +1,6 @@
#pragma once
+#include <library/cpp/json/writer/fwd.h>
#include <library/cpp/json/common/defs.h>
#include <util/generic/string.h>
@@ -23,8 +24,6 @@ namespace NJson {
JSON_UINTEGER /* "UInteger" */
};
- class TJsonValue;
-
class IScanCallback {
public:
virtual ~IScanCallback() = default;