"example/13_pool2d_fwd/pool2d_fwd.cpp" did not exist on "12dfba3d03f402c051e2129fa21f33264f4d26e5"
Commit e58f0f31 authored by jbeder's avatar jbeder
Browse files

Set alias nodes to return the tag of their anchor

parent 8080400c
...@@ -77,7 +77,7 @@ namespace YAML ...@@ -77,7 +77,7 @@ namespace YAML
bool IsReferenced() const { return m_referenced; } bool IsReferenced() const { return m_referenced; }
// for tags // 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 // emitting
friend Emitter& operator << (Emitter& out, const Node& node); 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