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
410e364a
Commit
410e364a
authored
Nov 18, 2020
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first quick experiment adding yclass
parent
7caf5821
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
include/pybind11/yclass.h
+0
-0
tests/test_unique_ptr_member.cpp
+6
-2
No files found.
include/pybind11/yclass.h
0 → 100644
View file @
410e364a
This diff is collapsed.
Click to expand it.
tests/test_unique_ptr_member.cpp
View file @
410e364a
#include "pybind11_tests.h"
#include "pybind11_tests.h"
#include <pybind11/yclass.h>
#include <memory>
#include <memory>
...
@@ -38,9 +39,12 @@ inline int cpp_pattern() {
...
@@ -38,9 +39,12 @@ inline int cpp_pattern() {
TEST_SUBMODULE
(
unique_ptr_member
,
m
)
{
TEST_SUBMODULE
(
unique_ptr_member
,
m
)
{
m
.
def
(
"cpp_pattern"
,
cpp_pattern
);
m
.
def
(
"cpp_pattern"
,
cpp_pattern
);
py
::
class_
<
pointee
>
(
m
,
"pointee"
)
py
::
yclass
<
pointee
>
(
m
,
"pointee"
)
#ifdef JUNK
.
def
(
py
::
init
<>
())
.
def
(
py
::
init
<>
())
.
def
(
"get_int"
,
&
pointee
::
get_int
);
.
def
(
"get_int"
,
&
pointee
::
get_int
)
#endif
;
py
::
class_
<
ptr_owner
>
(
m
,
"ptr_owner"
)
py
::
class_
<
ptr_owner
>
(
m
,
"ptr_owner"
)
#ifdef FEAT_UNIQUE_PTR_ARG
#ifdef FEAT_UNIQUE_PTR_ARG
...
...
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