Skip to content

Commit 74d01e2

Browse files
committed
LWG4452 Make deref-move constexpr
1 parent 9bc8f0b commit 74d01e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/algorithms.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13542,7 +13542,7 @@
1354213542
}
1354313543

1354413544
template<class I>
13545-
decltype(auto) @\exposid{deref-move}@(I& it) {
13545+
constexpr decltype(auto) @\exposid{deref-move}@(I& it) {
1354613546
if constexpr (is_lvalue_reference_v<decltype(*it)>)
1354713547
return std::move(*it);
1354813548
else

0 commit comments

Comments
 (0)