Do not convert node to string if not a scalar

This commit is contained in:
Raphael Coeffic
2022-01-01 11:36:29 +01:00
parent 8e69976dbb
commit 25ee9369cf
+1 -1
View File
@@ -22,7 +22,7 @@
YAML::Node operator >> (const YAML::Node& node, const YamlLookupTable& lut)
{
if (node) {
if (node && node.IsScalar()) {
std::string str = node.as<std::string>();
const auto& it =
find_if(lut.begin(), lut.end(), [=](const YamlLookupTableElmt& elmt) {