Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
81f35d29
Unverified
Commit
81f35d29
authored
Aug 20, 2022
by
Aaron Gokaslan
Committed by
GitHub
Aug 20, 2022
Browse files
chore: Mark detail:forward_like as constexpr (#4147)
parent
2d59b43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/stl.h
include/pybind11/stl.h
+1
-1
No files found.
include/pybind11/stl.h
View file @
81f35d29
...
...
@@ -45,7 +45,7 @@ using forwarded_type = conditional_t<std::is_lvalue_reference<T>::value,
/// Forwards a value U as rvalue or lvalue according to whether T is rvalue or lvalue; typically
/// used for forwarding a container's elements.
template
<
typename
T
,
typename
U
>
forwarded_type
<
T
,
U
>
forward_like
(
U
&&
u
)
{
constexpr
forwarded_type
<
T
,
U
>
forward_like
(
U
&&
u
)
{
return
std
::
forward
<
detail
::
forwarded_type
<
T
,
U
>>
(
std
::
forward
<
U
>
(
u
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment