mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Fixed anchor/tag in seq > map
This commit is contained in:
@@ -4,13 +4,16 @@
|
||||
int main()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
out << YAML::Anchor("monkey");
|
||||
out << YAML::Anchor("monkey") << YAML::LocalTag("a");
|
||||
out << YAML::BeginSeq;
|
||||
out << "foo";
|
||||
out << YAML::LocalTag("hi") << "bar";
|
||||
out << YAML::BeginMap;
|
||||
out << YAML::Anchor("asdf") << YAML::BeginMap;
|
||||
out << "a" << "b" << "c" << "d";
|
||||
out << YAML::EndMap;
|
||||
out << YAML::LocalTag("hi") << YAML::BeginSeq;
|
||||
out << "a" << "b";
|
||||
out << YAML::EndSeq;
|
||||
out << YAML::EndSeq;
|
||||
|
||||
std::cout << out.c_str() << "\n";
|
||||
|
Reference in New Issue
Block a user