-
- Downloads
Improve error messages on operator[] or as<> (#656)
Invalid access via operator[] or as<> will now print the offending key, if possible. For example: a: x: 1 y: 2 node["a"]["z"].as<int>() will say that the key "z" was invalid.
Showing
- include/yaml-cpp/exceptions.h 36 additions, 4 deletionsinclude/yaml-cpp/exceptions.h
- include/yaml-cpp/node/detail/impl.h 2 additions, 2 deletionsinclude/yaml-cpp/node/detail/impl.h
- include/yaml-cpp/node/impl.h 49 additions, 34 deletionsinclude/yaml-cpp/node/impl.h
- include/yaml-cpp/node/node.h 4 additions, 0 deletionsinclude/yaml-cpp/node/node.h
- include/yaml-cpp/traits.h 32 additions, 0 deletionsinclude/yaml-cpp/traits.h
- src/node_data.cpp 2 additions, 2 deletionssrc/node_data.cpp
- test/integration/error_messages_test.cpp 61 additions, 0 deletionstest/integration/error_messages_test.cpp
Loading
Please register or sign in to comment