Skip to content

Commit 4f75aa4

Browse files
committed
try to make msvc happy
1 parent 0b7c04b commit 4f75aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/include/MiscUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ bool linked_list_remove(L *list, F matches) {
328328
auto matches_wrapper = [&](L::iterator::value_type item) {
329329
return item && matches(item);
330330
};
331-
auto it = std::find_if(list->begin(), list->end(), matches_wrapper);
332-
if (it == list->end())
331+
typename L::const_iterator it = std::find_if(list->cbegin(), list->cend(), matches_wrapper);
332+
if (it == list->cend())
333333
return false;
334334
auto item = *it;
335335
list->erase(it);

0 commit comments

Comments
 (0)