Skip to content

Commit

Permalink
Default initialize node's member variable (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0zmo authored Jul 19, 2020
1 parent c3df6d8 commit 06b99f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/yaml-cpp/node/detail/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class node {
};

public:
node() : m_pRef(new node_ref), m_dependencies{} {}
node() : m_pRef(new node_ref), m_dependencies{}, m_index{} {}
node(const node&) = delete;
node& operator=(const node&) = delete;

Expand Down

0 comments on commit 06b99f5

Please sign in to comment.