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
1e4c2e04
Commit
1e4c2e04
authored
Jan 28, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing oversight.
parent
742bc0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/pybind11/detail/smart_holder_type_casters.h
+2
-2
No files found.
include/pybind11/detail/smart_holder_type_casters.h
View file @
1e4c2e04
...
@@ -549,7 +549,7 @@ struct smart_holder_type_caster<std::shared_ptr<T const>> : smart_holder_type_ca
...
@@ -549,7 +549,7 @@ struct smart_holder_type_caster<std::shared_ptr<T const>> : smart_holder_type_ca
static
handle
static
handle
cast
(
const
std
::
shared_ptr
<
T
const
>
&
src
,
return_value_policy
policy
,
handle
parent
)
{
cast
(
const
std
::
shared_ptr
<
T
const
>
&
src
,
return_value_policy
policy
,
handle
parent
)
{
return
type_caster
<
std
::
shared_ptr
<
T
>>::
cast
(
return
smart_holder_
type_caster
<
std
::
shared_ptr
<
T
>>::
cast
(
std
::
const_pointer_cast
<
T
>
(
src
),
// Const2Mutbl
std
::
const_pointer_cast
<
T
>
(
src
),
// Const2Mutbl
policy
,
policy
,
parent
);
parent
);
...
@@ -610,7 +610,7 @@ struct smart_holder_type_caster<std::unique_ptr<T const>> : smart_holder_type_ca
...
@@ -610,7 +610,7 @@ struct smart_holder_type_caster<std::unique_ptr<T const>> : smart_holder_type_ca
static
constexpr
auto
name
=
_
<
std
::
unique_ptr
<
T
const
>>
();
static
constexpr
auto
name
=
_
<
std
::
unique_ptr
<
T
const
>>
();
static
handle
cast
(
std
::
unique_ptr
<
T
const
>
&&
src
,
return_value_policy
policy
,
handle
parent
)
{
static
handle
cast
(
std
::
unique_ptr
<
T
const
>
&&
src
,
return_value_policy
policy
,
handle
parent
)
{
return
type_caster
<
std
::
unique_ptr
<
T
>>::
cast
(
return
smart_holder_
type_caster
<
std
::
unique_ptr
<
T
>>::
cast
(
std
::
unique_ptr
<
T
>
(
const_cast
<
T
*>
(
src
.
release
())),
// Const2Mutbl
std
::
unique_ptr
<
T
>
(
const_cast
<
T
*>
(
src
.
release
())),
// Const2Mutbl
policy
,
policy
,
parent
);
parent
);
...
...
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