Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tom Niget
typon
Commits
e2134ee5
Commit
e2134ee5
authored
Aug 29, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PyObj impl ctor
parent
48e161d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
rt/include/python/builtins.hpp
rt/include/python/builtins.hpp
+8
-5
No files found.
rt/include/python/builtins.hpp
View file @
e2134ee5
...
...
@@ -66,7 +66,7 @@ class PyObj : public std::shared_ptr<typename RealType<T>::type> {
public:
using
inner
=
typename
RealType
<
T
>::
type
;
/*
PyObj() : std::shared_ptr<inner>() {}
PyObj
()
:
std
::
shared_ptr
<
inner
>
()
{}
PyObj
(
std
::
nullptr_t
)
:
std
::
shared_ptr
<
inner
>
(
nullptr
)
{}
PyObj
(
inner
*
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
PyObj
(
const
std
::
shared_ptr
<
inner
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
...
...
@@ -83,14 +83,17 @@ public:
PyObj
(
const
PyObj
<
U
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
template
<
typename
U
>
PyObj(PyObj<U> &&ptr) : std::shared_ptr<inner>(ptr) {}
*/
PyObj
(
PyObj
<
U
>
&&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
template
<
typename
...
Args
>
PyObj
(
Args
&&
...
args
)
:
std
::
shared_ptr
<
inner
>
(
std
::
forward
<
Args
>
(
args
)...)
{}
// using make_shared
template
<
class
U
>
PyObj
(
const
U
&
other
)
:
std
::
shared_ptr
<
inner
>
(
std
::
make_shared
<
T
>
(
other
))
{}
PyObj
(
U
&&
other
)
:
std
::
shared_ptr
<
inner
>
(
std
::
make_shared
<
inner
>
(
other
))
{}
/*template<typename... Args>
PyObj(Args&&... args) : std::shared_ptr<inner>(std::forward<Args>(args)...) {}*/
template
<
class
U
>
bool
operator
==
(
const
PyObj
<
U
>
&
other
)
const
{
...
...
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