Example:
YAML::Node node = YAML::LoadFile(constant::file::configuration);
const double commission_factor = node["factor"].as<double>();
node["factor"] = 4.532;
It would be beneficial to have an alternative function instead of the overloaded operator operator[] to please the clang-tidy recommendation to not use overloaded operator[], https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-bounds-avoid-unchecked-container-access.html. This is needed for read and write operations.
This makes sense as in the STL operator[] does not throw exceptions but rather aborts the programme and thus is not recommended.
Example:
It would be beneficial to have an alternative function instead of the overloaded operator
operator[]to please the clang-tidy recommendation to not use overloadedoperator[], https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-bounds-avoid-unchecked-container-access.html. This is needed for read and write operations.This makes sense as in the STL
operator[]does not throw exceptions but rather aborts the programme and thus is not recommended.