kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Does it unsupport Mapping of Mappings? #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am a chinese, so i am sorry for my poor english,.

I give it a yaml file:(yaml 1.0&1.1&1.2 spec Example 2.6)

Mark McGwire: {hr: 65, avg: 0.278}
Sammy Sosa: {
    hr: 63,
    avg: 0.288
  }
but it said "yaml-cpp: error at line 1, column 15: invalid scalar"
Why?

Original issue reported on code.google.com by wuwenbin...@gmail.com on 22 May 2010 at 1:26

GoogleCodeExporter commented 8 years ago
Sorry,It's my problem,now i solved it.
In this case,
It's a map,but its value is not a scalar.
I used iter.second() >> value;
it's incorrect
so i got this error.

Original comment by wuwenbin...@gmail.com on 22 May 2010 at 1:34

GoogleCodeExporter commented 8 years ago
OK. Glad you got it working.

Original comment by jbe...@gmail.com on 22 May 2010 at 7:52