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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -