We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bf48b commit 0cc6ae5Copy full SHA for 0cc6ae5
source/ranges.tex
@@ -396,7 +396,7 @@
396
// \ref{range.as.const}, as const view
397
template<@\libconcept{input_range}@ R>
398
constexpr auto& @\exposid{possibly-const-range}@(R& r) noexcept { // \expos
399
- if constexpr (@\libconcept{constant_range}@<const R> && !@\libconcept{constant_range}@<R>) {
+ if constexpr (@\libconcept{input_range}@<const R>) {
400
return const_cast<const R&>(r);
401
} else {
402
return r;
0 commit comments