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
741dcf6c
Commit
741dcf6c
authored
Jan 13, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding MISSING comments in operator std::unique_ptr<mpty[ const]>.
parent
6d0a8ebe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tests/test_classh_wip.cpp
+8
-2
No files found.
tests/test_classh_wip.cpp
View file @
741dcf6c
...
@@ -362,7 +362,10 @@ struct type_caster<std::unique_ptr<mpty>> : smart_holder_type_caster_load<mpty>
...
@@ -362,7 +362,10 @@ struct type_caster<std::unique_ptr<mpty>> : smart_holder_type_caster_load<mpty>
template
<
typename
>
template
<
typename
>
using
cast_op_type
=
std
::
unique_ptr
<
mpty
>
;
using
cast_op_type
=
std
::
unique_ptr
<
mpty
>
;
operator
std
::
unique_ptr
<
mpty
>
()
{
return
smhldr_ptr
->
as_unique_ptr
<
mpty
>
();
}
operator
std
::
unique_ptr
<
mpty
>
()
{
// MISSING: value_and_holder value_ptr reset, deregister_instance.
return
smhldr_ptr
->
as_unique_ptr
<
mpty
>
();
}
};
};
template
<>
template
<>
...
@@ -378,7 +381,10 @@ struct type_caster<std::unique_ptr<mpty const>> : smart_holder_type_caster_load<
...
@@ -378,7 +381,10 @@ struct type_caster<std::unique_ptr<mpty const>> : smart_holder_type_caster_load<
template
<
typename
>
template
<
typename
>
using
cast_op_type
=
std
::
unique_ptr
<
mpty
const
>
;
using
cast_op_type
=
std
::
unique_ptr
<
mpty
const
>
;
operator
std
::
unique_ptr
<
mpty
const
>
()
{
return
smhldr_ptr
->
as_unique_ptr
<
mpty
>
();
}
operator
std
::
unique_ptr
<
mpty
const
>
()
{
// MISSING: value_and_holder value_ptr reset, deregister_instance.
return
smhldr_ptr
->
as_unique_ptr
<
mpty
>
();
}
};
};
}
// namespace detail
}
// namespace detail
...
...
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