Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
2d59b43c
Unverified
Commit
2d59b43c
authored
Aug 11, 2022
by
Stephan T. Lavavej
Committed by
GitHub
Aug 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qualify detail::forward_like to avoid conflict. (#4136)
C++23 feature: P2445R1 forward_like()
parent
b884b9dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/pybind11/stl.h
+5
-5
No files found.
include/pybind11/stl.h
View file @
2d59b43c
...
@@ -78,7 +78,7 @@ struct set_caster {
...
@@ -78,7 +78,7 @@ struct set_caster {
pybind11
::
set
s
;
pybind11
::
set
s
;
for
(
auto
&&
value
:
src
)
{
for
(
auto
&&
value
:
src
)
{
auto
value_
=
reinterpret_steal
<
object
>
(
auto
value_
=
reinterpret_steal
<
object
>
(
key_conv
::
cast
(
forward_like
<
T
>
(
value
),
policy
,
parent
));
key_conv
::
cast
(
detail
::
forward_like
<
T
>
(
value
),
policy
,
parent
));
if
(
!
value_
||
!
s
.
add
(
std
::
move
(
value_
)))
{
if
(
!
value_
||
!
s
.
add
(
std
::
move
(
value_
)))
{
return
handle
();
return
handle
();
}
}
...
@@ -122,9 +122,9 @@ struct map_caster {
...
@@ -122,9 +122,9 @@ struct map_caster {
}
}
for
(
auto
&&
kv
:
src
)
{
for
(
auto
&&
kv
:
src
)
{
auto
key
=
reinterpret_steal
<
object
>
(
auto
key
=
reinterpret_steal
<
object
>
(
key_conv
::
cast
(
forward_like
<
T
>
(
kv
.
first
),
policy_key
,
parent
));
key_conv
::
cast
(
detail
::
forward_like
<
T
>
(
kv
.
first
),
policy_key
,
parent
));
auto
value
=
reinterpret_steal
<
object
>
(
auto
value
=
reinterpret_steal
<
object
>
(
value_conv
::
cast
(
forward_like
<
T
>
(
kv
.
second
),
policy_value
,
parent
));
value_conv
::
cast
(
detail
::
forward_like
<
T
>
(
kv
.
second
),
policy_value
,
parent
));
if
(
!
key
||
!
value
)
{
if
(
!
key
||
!
value
)
{
return
handle
();
return
handle
();
}
}
...
@@ -178,7 +178,7 @@ public:
...
@@ -178,7 +178,7 @@ public:
ssize_t
index
=
0
;
ssize_t
index
=
0
;
for
(
auto
&&
value
:
src
)
{
for
(
auto
&&
value
:
src
)
{
auto
value_
=
reinterpret_steal
<
object
>
(
auto
value_
=
reinterpret_steal
<
object
>
(
value_conv
::
cast
(
forward_like
<
T
>
(
value
),
policy
,
parent
));
value_conv
::
cast
(
detail
::
forward_like
<
T
>
(
value
),
policy
,
parent
));
if
(
!
value_
)
{
if
(
!
value_
)
{
return
handle
();
return
handle
();
}
}
...
@@ -242,7 +242,7 @@ public:
...
@@ -242,7 +242,7 @@ public:
ssize_t
index
=
0
;
ssize_t
index
=
0
;
for
(
auto
&&
value
:
src
)
{
for
(
auto
&&
value
:
src
)
{
auto
value_
=
reinterpret_steal
<
object
>
(
auto
value_
=
reinterpret_steal
<
object
>
(
value_conv
::
cast
(
forward_like
<
T
>
(
value
),
policy
,
parent
));
value_conv
::
cast
(
detail
::
forward_like
<
T
>
(
value
),
policy
,
parent
));
if
(
!
value_
)
{
if
(
!
value_
)
{
return
handle
();
return
handle
();
}
}
...
...
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