Skip to content

Commit 398a014

Browse files
Fix std::ranges::split_view compatibility in StartTracingAgent
The split_view subrange doesn't guarantee .data()/.size() methods. Use iterator-based string construction instead. Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent 8e7b88e commit 398a014

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_v8_platform-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct V8Platform {
111111
[](auto& categories) -> std::set<std::string> {
112112
std::set<std::string> out;
113113
for (const auto& s : categories) {
114-
out.emplace(std::string(s.data(), s.size()));
114+
out.emplace(std::string(std::ranges::begin(s), std::ranges::end(s)));
115115
}
116116
return out;
117117
};

0 commit comments

Comments
 (0)