Corrected return type of getRegisterGroup() member function in Module TDF struct

This commit is contained in:
Nav
2024-03-20 21:28:05 +00:00
parent af815fba13
commit 6c82c4295a

View File

@@ -44,7 +44,7 @@ namespace Targets::TargetDescription
: std::nullopt; : std::nullopt;
} }
std::optional<std::reference_wrapper<const RegisterGroup>> getRegisterGroup(std::string_view keyStr) const { const RegisterGroup& getRegisterGroup(std::string_view keyStr) const {
const auto group = this->tryGetRegisterGroup(keyStr); const auto group = this->tryGetRegisterGroup(keyStr);
if (!group.has_value()) { if (!group.has_value()) {
throw Exceptions::InvalidTargetDescriptionDataException( throw Exceptions::InvalidTargetDescriptionDataException(