We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d59b43 commit 81f35d2Copy full SHA for 81f35d2
include/pybind11/stl.h
@@ -45,7 +45,7 @@ using forwarded_type = conditional_t<std::is_lvalue_reference<T>::value,
45
/// Forwards a value U as rvalue or lvalue according to whether T is rvalue or lvalue; typically
46
/// used for forwarding a container's elements.
47
template <typename T, typename U>
48
-forwarded_type<T, U> forward_like(U &&u) {
+constexpr forwarded_type<T, U> forward_like(U &&u) {
49
return std::forward<detail::forwarded_type<T, U>>(std::forward<U>(u));
50
}
51
0 commit comments