Skip to content

Commit daffc09

Browse files
burblebeetkoeppe
authored andcommitted
LWG4452 Make deref-move constexpr
1 parent 7102286 commit daffc09

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
@@ -13548,7 +13548,7 @@
1354813548
}
1354913549

1355013550
template<class I>
13551-
decltype(auto) @\exposid{deref-move}@(I& it) {
13551+
constexpr decltype(auto) @\exposid{deref-move}@(I& it) {
1355213552
if constexpr (is_lvalue_reference_v<decltype(*it)>)
1355313553
return std::move(*it);
1355413554
else

0 commit comments

Comments
 (0)