test yaml-cpp 0.5.3 issue -


i tried know yaml rules.
, init.yaml file this:

name: ryan braun position: lf 

main code:

int main() {     yaml::node node = yaml::loadfile("init.yaml");     cout << node.type() << endl;    return 0; }   

this simple example, want see node's type. should map described in how emit yaml. output 0, means undefined. makes me confused. maybe misunderstand.
suggestions thankful.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -