yaml-cpp
yaml-cpp copied to clipboard
A YAML parser and emitter in C++
I would expect the following code to work but on the second block yamp-cpp throws a BadConversion exception: ``` syslog: facility: LOG_LOCAL4 ``` ``` #include #include using namespace std; int...
# Restructure CMake Build System to Follow Modern Best Practices ## Problem The current yaml-cpp build system has several issues: 1. It uses `file(GLOB ...)` for finding source files, which:...
The file should include `Cflags.private: -DYAML_CPP_STATIC_DEFINE`. Without that, one gets undefined symbols when linking a static library, because the headers expect dynamically linked symbols (with the corresponding prefix on Windows).
``` YAML::Node node = YAML::Load("{text1: \"Hello\u00A0World\", text2: \"Hello World\", text3: \"Hello\\_World\"}"); std::string text1 = node["text1"].as(); std::string text2 = node["text2"].as(); std::string text3 = node["text3"].as(); ``` These 3 texts should all be...
CMake generation started for configuration: 'x64-Debug'. 1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\Repos\\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual...
Hi, This should probably not be in the docs: https://codedocs.xyz/jbeder/yaml-cpp/classVeryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo72732a7a8cd04f0ab9551a6aaa86a0c2.html You can exclude directories by setting the `DOXYGEN_EXCLUDE_PATTERNS` CMake variable, for example: ```cmake set(DOXYGEN_EXCLUDE_PATTERNS ${CMAKE_SOURCE_DIREC}/test/*) ``` Regards, Jules
It already returns an empty string if it encounters an invalid character. However, if, instead, it has an incomplete set of characters (no-multiple of four), it currently returns a truncated...
Previously documents like the following was simply ignored: ---- # foo bar: bam
I am keen to integrate support for fuzzing yaml-cpp so that any bugs can be detected and fixed. A pull request for the initial integration of this can be found...
Many classes in the yaml-cpp API such as in binary.h, ostream-wrapper.h etc... are exported as part of the DLL interface while having members of types from the STL. This causes...