Skip to content

Commit cac6b55

Browse files
committed
Use explicit std::string&& (rvalue reference) instead of auto&& (forwarding reference)
1 parent c1e1221 commit cac6b55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phlex/model/fixed_hierarchy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace {
4949
for (auto&& lp : std::move(layer_paths)) {
5050
auto lp_as_ids =
5151
lp | std::views::as_rvalue |
52-
std::views::transform([](auto&& str) { return identifier(std::move(str)); }) |
52+
std::views::transform([](std::string&& str) { return identifier(std::move(str)); }) |
5353
std::ranges::to<std::vector>();
5454
result.emplace_back(std::move(lp_as_ids));
5555
}

0 commit comments

Comments
 (0)