Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of -1
1 answer
164 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 ...
Score of 0
1 answer
93 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 ...
Score of 2
1 answer
75 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 ...
Score of 1
1 answer
162 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 ...
Score of 3
0 answers
291 views

This code: std::cout << "std::cout for 2112 = " << 2112 << '\n'; std::stringstream ss; ss << 2112; std::cout << "std::stringstream for 2112 = " <&...
Score of 0
1 answer
118 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 ...
Score of 0
1 answer
221 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 ...
Score of 2
1 answer
295 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 ...
Score of 0
0 answers
90 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 { //...
Score of 1
1 answer
615 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/...
Score of -3
1 answer
101 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 << &...
Score of 2
1 answer
530 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 ...
Score of 0
0 answers
374 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 ...
Score of 0
1 answer
208 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 ...
Score of 1
1 answer
580 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 ...

15 30 50 per page
1
2 3 4 5
22