summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorakhropov <[email protected]>2025-10-08 16:13:36 +0300
committerakhropov <[email protected]>2025-10-08 16:35:51 +0300
commitc9628ffa451e4306ad82363e2b383abf3675eeed (patch)
tree8e4ba86cf6f4d919adfddbc32580c4dc63180db3 /library/cpp
parent343f6fb150d2e6f4316b082cee900527d4b33a25 (diff)
Add a comment noting that assignment operators could change the type
commit_hash:d7aa6614e2ad37c30d381ce47580aabb7a15a595
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yson/node/node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/yson/node/node.h b/library/cpp/yson/node/node.h
index 466b091ac26..ab591f71fc3 100644
--- a/library/cpp/yson/node/node.h
+++ b/library/cpp/yson/node/node.h
@@ -137,6 +137,9 @@ public:
TNode(bool b);
TNode(TMapType map);
+ // Note that copy- and move- assignment operators don't check that the new value has the same type as the current
+ // so the type could be changed as a result of these operations
+
TNode(const TNode& rhs);
TNode& operator=(const TNode& rhs);