Fixed NodeBuilder bug when an alias was in a map - we weren't pushing that guy as a key

This commit is contained in:
Jesse Beder
2011-09-12 14:24:27 -05:00
parent 3337df7ca2
commit fddc991b60
2 changed files with 15 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ namespace YAML
private:
detail::node& Push(anchor_t anchor);
void Push(detail::node& node);
void Pop();
void RegisterAnchor(anchor_t anchor, detail::node& node);
@@ -47,8 +48,8 @@ namespace YAML
Nodes m_stack;
Nodes m_anchors;
typedef std::pair<detail::node *, bool> Key;
std::vector<Key> m_keys;
typedef std::pair<detail::node *, bool> PushedKey;
std::vector<PushedKey> m_keys;
std::size_t m_mapDepth;
};
}