We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ff72d commit 0970a10Copy full SHA for 0970a10
include/yaml-cpp/node/node.h
@@ -129,7 +129,6 @@ class YAML_CPP_API Node {
129
bool m_isValid;
130
mutable detail::shared_memory_holder m_pMemory;
131
mutable detail::node* m_pNode;
132
- mutable const detail::node* m_pConstNode;
133
};
134
135
YAML_CPP_API bool operator==(const Node& lhs, const Node& rhs);
util/sandbox.cpp
@@ -26,11 +26,11 @@ class NullEventHandler : public YAML::EventHandler {
26
27
28
int main() {
29
- const YAML::Node node;
+ YAML::Node root;
30
31
- std::string key = "doesnotexist";
32
for (;;) {
33
- node[key];
+ YAML::Node node;
+ root = node;
34
}
35
return 0;
36
0 commit comments