Commit 083a97b1 authored by Jesse Beder's avatar Jesse Beder
Browse files

Set alias nodes to return the tag of their anchor

parent 22269874
......@@ -77,7 +77,7 @@ namespace YAML
bool IsReferenced() const { return m_referenced; }
// for tags
const std::string GetTag() const { return m_tag; } // TODO: should an aliased node return its alias's tag?
const std::string GetTag() const { return IsAlias() ? m_pIdentity->GetTag() : m_tag; }
// emitting
friend Emitter& operator << (Emitter& out, const Node& node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment