Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
993809ef
Commit
993809ef
authored
Aug 29, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PyObj impl ctor
parent
f3ea36ef
Changes
1
Hide 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 @
993809ef
...
@@ -66,7 +66,7 @@ class PyObj : public std::shared_ptr<typename RealType<T>::type> {
...
@@ -66,7 +66,7 @@ class PyObj : public std::shared_ptr<typename RealType<T>::type> {
public:
public:
using
inner
=
typename
RealType
<
T
>::
type
;
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
(
std
::
nullptr_t
)
:
std
::
shared_ptr
<
inner
>
(
nullptr
)
{}
PyObj
(
inner
*
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
PyObj
(
inner
*
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
PyObj
(
const
std
::
shared_ptr
<
inner
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
PyObj
(
const
std
::
shared_ptr
<
inner
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
...
@@ -83,14 +83,17 @@ public:
...
@@ -83,14 +83,17 @@ public:
PyObj
(
const
PyObj
<
U
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
PyObj
(
const
PyObj
<
U
>
&
ptr
)
:
std
::
shared_ptr
<
inner
>
(
ptr
)
{}
template
<
typename
U
>
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
// using make_shared
template
<
class
U
>
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
>
template
<
class
U
>
bool
operator
==
(
const
PyObj
<
U
>
&
other
)
const
{
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