Skip to content

Commit

Permalink
Fix build - don't use C++20 features
Browse files Browse the repository at this point in the history
  • Loading branch information
mindonwarp committed Jun 21, 2022
1 parent d8af6aa commit 80a262a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UmatiServerLib/Instantiation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ open62541Cpp::UA_NodeId readTypeDefinition(UA_Server *pServer, open62541Cpp::UA_
UA_BrowseDescription_clear(&brDesc);
UA_ReferenceDescription_clear(&reference);

if (!ss.view().empty()) {
if (!ss.str().empty()) {
throw std::runtime_error(ss.str());
}

Expand Down Expand Up @@ -154,7 +154,7 @@ open62541Cpp::UA_NodeId getReferenceTypeFromMemberNode(UA_Server *pServer, open6
UA_BrowseDescription_clear(&brDesc);
UA_ReferenceDescription_clear(&reference);

if (!ss.view().empty()) {
if (!ss.str().empty()) {
throw std::runtime_error(ss.str());
}

Expand Down Expand Up @@ -187,7 +187,7 @@ void instantiateInterfaces(UA_Server *pServer, open62541Cpp::UA_NodeId member, o

UA_BrowseResult_clear(&browseResult);
UA_BrowseDescription_clear(&brDesc);
if (ss.str().length() != 0) {
if (!ss.str().empty()) {
throw std::runtime_error(ss.str());
}
}

0 comments on commit 80a262a

Please sign in to comment.