title: How to determine the built in tag of a node in yaml-cpp?
body: <p>In yaml-cpp, the function <code>YAML::Node::Tag()</code> seems to only return anything other than <code>"?"</code> when an application-defined tag is used in the YAML source. Surely it should return (for example) <code>"!!map"</code>, <code>"!!int"</code> or other built in tags. Is this desired behaviour, and how can I determine, for example, the particular type tag of a scalar node, e.g. null, boolean, integer, float, string etc.? The only approach I can see is to try <code>YAML::Node::as&lt;T&gt;()</code> with each type until an exception is not thrown.</p>