Skip to content

Commit

Permalink
Default initialize node's member variable (jbeder#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0zmo authored and Dan Dees committed Oct 16, 2020
1 parent 475674a commit 383f4ea
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 383f4ea

Please sign in to comment.