Skip to content

Commit a7577ab

Browse files
leoparenteclaude
andcommitted
fix: adapt Policies.cpp to Corrade cci.20250327 StringView API
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9a36268 commit a7577ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Policies.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "HandlerManager.h"
88
#include "InputStreamManager.h"
99
#include "Taps.h"
10+
#include "CorradeCompat.h"
1011
#include <algorithm>
1112
#include <fmt/format.h>
1213
#include <spdlog/spdlog.h>
@@ -88,7 +89,7 @@ std::vector<Policy *> PolicyManager::load(const YAML::Node &policy_yaml, bool si
8889
auto [tap, tap_lock] = _registry->tap_manager()->module_get_locked(tap_name);
8990
policy_ptr->add_tap(tap);
9091
// ensure tap input type matches policy input tap
91-
if (input_node["input_type"].as<std::string>() != tap->input_plugin()->plugin()) {
92+
if (input_node["input_type"].as<std::string>() != corrade_to_std_string(tap->input_plugin()->plugin())) {
9293
throw PolicyException(fmt::format("input_type for policy specified tap '{}' doesn't match tap's defined input type: {}/{}", tap_name, input_node["input_type"].as<std::string>(), tap->input_plugin()->plugin()));
9394
}
9495
// handler internal config

0 commit comments

Comments
 (0)