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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -