Skip to content

Commit a26fb4b

Browse files
committed
Avoid a const mismatch in filter
1 parent 935fa73 commit a26fb4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dependencies/std_module

source/containers/algorithms/filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export template<typename Range, typename UnaryPredicate>
9898
struct filter {
9999
constexpr filter(Range && range, UnaryPredicate predicate):
100100
m_range(OPERATORS_FORWARD(range)),
101-
m_traits(::containers::end(m_range), std::move(predicate))
101+
m_traits(::containers::end(std::as_const(m_range)), std::move(predicate))
102102
{
103103
}
104104

0 commit comments

Comments
 (0)