Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
149 views

Does lib-yaml support complex keys, for example: thr:   - ? {cpu: 1, mem: 1} : 24   - ? {cpu: 2, mem: 2} : 42 The following test program #include <yaml-cpp/yaml.h> int main() { YAML::Node ...
Olumide's user avatar
  • 5,931
0 votes
1 answer
84 views

This code: ... YAML::Node myNode; myNode["some-value"] = "3"; ... YAML::Emitter emitter; emitter << myNode; ... Produces the following output: some-value: 3 This leads to ...
Boris's user avatar
  • 9,051
2 votes
1 answer
73 views

I'm trying to use the following C++ program #include <iostream> #include <yaml-cpp/yaml.h> int main() { YAML::Node config = YAML::LoadFile("test.yaml"); YAML::Node ...
Olumide's user avatar
  • 5,931
1 vote
1 answer
156 views

I‘m trying to serialize some data using yaml-cpp on destruction of an object. This normally works fine but as soon as that object is static something weird happens: Every string, also keys of maps, is ...
Krausler's user avatar
3 votes
0 answers
280 views

This code: std::cout << "std::cout for 2112 = " << 2112 << '\n'; std::stringstream ss; ss << 2112; std::cout << "std::stringstream for 2112 = " <&...
Tom 's user avatar
  • 175
0 votes
1 answer
111 views

I want to using this variable globally (C,C++) config.h extern YAML::Node m_configList config.cpp YAML::Node m_configList; this is yaml-cpp variable. this variable using 3 files file1.cpp file2.cpp ...
Kundera's user avatar
  • 315
0 votes
1 answer
217 views

I am trying to load and alter a YAML file using yaml-cpp. I have a string that determines a path thought a yaml, e.g. "node1/node2/node3", it gets split at '/' and then traverses through the ...
Nidhoegger's user avatar
  • 5,352
2 votes
1 answer
282 views

I find it convenient to use the flag _GLIBCXX_DEBUG when compiling c++ with gcc in debug builds since they enable range checking for std::vector and the like. However, when I use yaml-cpp to parse ...
ander's user avatar
  • 41
0 votes
0 answers
84 views

I am using Ubuntu 20.04 with libyaml-cpp-dev (version 0.6.2-4ubuntu1). I try to compile this simple example #include <iostream> #include <yaml-cpp/yaml.h> int main() { try { //...
Lalylulelo's user avatar
1 vote
1 answer
593 views

Is it possible to use yaml-cpp without exception support? Currently, I use yaml-cpp-0.8.0. When I try to compile a program that uses yaml-cpp I get the following error: external/yaml-cpp~override/src/...
Vertexwahn's user avatar
  • 7,928
-3 votes
1 answer
96 views

How do i write multiline yaml file, that looks like this: I am using c++ library yaml-cpp. Here is a peek to my code: YAML::Emitter out; out << YAML::BeginMap; out << YAML::Key << &...
S. Zaprazny's user avatar
2 votes
1 answer
517 views

I have YAML file (Unity YAML) which contains multiple documents: %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &500710038956159860 GameObject: m_ObjectHideFlags: 0 ...
uni's user avatar
  • 613
0 votes
0 answers
371 views

I am using Embarcadero C++Builder v10.4 with a C++ VCL application. I need to read YAML, and the most referenced API is "yaml-cpp". What I am asking for is help or guidance on what I have to ...
Jay's user avatar
  • 1
0 votes
1 answer
206 views

I am working on CentOS7 with devtoolset-10 activated: scl enable devtoolset-10 bash Also working in a newly created conda environment conda create -n test-yaml-cpp python=3.10 yaml-cpp=0.7.0 conda ...
dagnic's user avatar
  • 158
1 vote
1 answer
573 views

I'm thinking of assigning my own unique id string to each YAML::Node via the SetTag() function. Is this possible, or is yaml-cpp referencing these tags internally, and it'll get confused? Also, is ...
Nick Kovac's user avatar

15 30 50 per page
1
2 3 4 5
22