Skip to content

Commit c2772a9

Browse files
authored
[specialized.algorithms.general] Make deref-move constexpr
1 parent a7b71b3 commit c2772a9

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
@@ -13533,7 +13533,7 @@
1353313533
}
1353413534

1353513535
template<class I>
13536-
decltype(auto) @\exposid{deref-move}@(I& it) {
13536+
constexpr decltype(auto) @\exposid{deref-move}@(I& it) {
1353713537
if constexpr (is_lvalue_reference_v<decltype(*it)>)
1353813538
return std::move(*it);
1353913539
else

0 commit comments

Comments
 (0)