summaryrefslogtreecommitdiff
path: root/redfish-core/include/utils/query_param.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/utils/query_param.hpp')
-rw-r--r--redfish-core/include/utils/query_param.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/include/utils/query_param.hpp b/redfish-core/include/utils/query_param.hpp
index 696e323d96..5fa4852390 100644
--- a/redfish-core/include/utils/query_param.hpp
+++ b/redfish-core/include/utils/query_param.hpp
@@ -30,6 +30,7 @@
#include <map>
#include <memory>
#include <optional>
+#include <ranges>
#include <string>
#include <string_view>
#include <system_error>
@@ -960,9 +961,8 @@ inline void recursiveSelect(nlohmann::json& currRoot,
constexpr std::array<std::string_view, 5> reservedProperties = {
"@odata.id", "@odata.type", "@odata.context", "@odata.etag",
"error"};
- bool reserved = std::find(reservedProperties.begin(),
- reservedProperties.end(),
- it.key()) != reservedProperties.end();
+ bool reserved = std::ranges::find(reservedProperties, it.key()) !=
+ reservedProperties.end();
if (reserved || (nextNode != nullptr && nextNode->isSelected()))
{
it = nextIt;