return false;
}
- return augmentations.try_emplace(std::string{augmentation}, known_info.weight).second;
+ return augmentations.try_emplace(augmentation, known_info.weight).second;
}
else {
if (!value.has_value()) {
}
if (known_info.value_type == augmentation_value_type::STRING_VALUE) {
- return augmentations.try_emplace(std::string{augmentation}, std::string{value.value()},
+ return augmentations.try_emplace(augmentation, std::string{value.value()},
known_info.weight).second;
}
else if (known_info.value_type == augmentation_value_type::NUMBER_VALUE) {
return false;
}
- return augmentations.try_emplace(std::string{augmentation}, num,
+ return augmentations.try_emplace(augmentation, num,
known_info.weight).second;
}
}
else {
msg_debug_cache("added unknown augmentation %s for symbol %s",
"unknown", augmentation.data(), symbol.data());
- return augmentations.try_emplace(std::string{augmentation}, 0).second;
+ return augmentations.try_emplace(augmentation, 0).second;
}
// Should not be reached