File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ constexpr void has_type(Actual &&)
130
130
static_assert (std::is_same<Expected, Actual>::value, " Not the same" );
131
131
}
132
132
133
- template <ranges::cardinality Expected,
134
- typename Rng,
133
+ template <ranges::cardinality Expected,
134
+ typename Rng,
135
135
ranges::cardinality Actual = ranges::range_cardinality<Rng>::value>
136
136
constexpr void has_cardinality (Rng &&)
137
137
{
@@ -141,7 +141,7 @@ constexpr void has_cardinality(Rng &&)
141
141
template <typename T>
142
142
constexpr T & as_lvalue (T && t)
143
143
{
144
- return t;
144
+ return static_cast <T&>(t); // prevent C++23 implicit move (plain `t` is move-eligible)
145
145
}
146
146
147
147
// A simple, light-weight, non-owning reference to a type-erased function.
You can’t perform that action at this time.
0 commit comments