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
8edfa0c1
Commit
8edfa0c1
authored
Apr 30, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
further simplifications to shared_ptr caster
parent
e44e56fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
include/pybind11/cast.h
+3
-5
No files found.
include/pybind11/cast.h
View file @
8edfa0c1
...
@@ -680,8 +680,6 @@ public:
...
@@ -680,8 +680,6 @@ public:
using
type_caster_base
<
type
>::
typeinfo
;
using
type_caster_base
<
type
>::
typeinfo
;
using
type_caster_base
<
type
>::
value
;
using
type_caster_base
<
type
>::
value
;
using
type_caster_base
<
type
>::
temp
;
using
type_caster_base
<
type
>::
temp
;
using
type_caster_base
<
type
>::
copy_constructor
;
using
type_caster_base
<
type
>::
move_constructor
;
bool
load
(
handle
src
,
bool
convert
)
{
bool
load
(
handle
src
,
bool
convert
)
{
if
(
!
src
||
!
typeinfo
)
{
if
(
!
src
||
!
typeinfo
)
{
...
@@ -718,11 +716,11 @@ public:
...
@@ -718,11 +716,11 @@ public:
explicit
operator
holder_type
&
()
{
return
holder
;
}
explicit
operator
holder_type
&
()
{
return
holder
;
}
#endif
#endif
static
handle
cast
(
const
holder_type
&
src
,
return_value_policy
policy
,
handle
parent
)
{
static
handle
cast
(
const
holder_type
&
src
,
return_value_policy
,
handle
)
{
return
type_caster_generic
::
cast
(
return
type_caster_generic
::
cast
(
src
.
get
(),
return_value_policy
::
take_ownership
,
parent
,
src
.
get
(),
return_value_policy
::
take_ownership
,
handle
()
,
src
.
get
()
?
&
typeid
(
*
src
.
get
())
:
nullptr
,
&
typeid
(
type
),
src
.
get
()
?
&
typeid
(
*
src
.
get
())
:
nullptr
,
&
typeid
(
type
),
&
copy_constructor
,
&
move_constructo
r
,
&
src
);
nullptr
,
nullpt
r
,
&
src
);
}
}
protected
:
protected
:
...
...
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