We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca1838 commit 1f6735bCopy full SHA for 1f6735b
1 file changed
include/phasar/Utils/TypedVector.h
@@ -118,13 +118,13 @@ class TypedVector {
118
drop_front(size_t Offs) && noexcept = delete;
119
120
[[nodiscard]] auto enumerate() const noexcept {
121
- return llvm::map_range(llvm::enumerate(Vec), [](const auto &IndexAndVal) {
+ return llvm::map_range(llvm::enumerate(Vec), [](auto &&IndexAndVal) {
122
return std::pair<IdT, ByConstRef<ValueT>>{IdT(IndexAndVal.index()),
123
IndexAndVal.value()};
124
});
125
}
126
[[nodiscard]] auto enumerate() noexcept {
127
- return llvm::map_range(llvm::enumerate(Vec), [](auto &IndexAndVal) {
128
return std::pair<IdT, ValueT &>{IdT(IndexAndVal.index()),
129
130
0 commit comments