Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
autopybind11
autopybind11
Commits
4b52bd4e
Commit
4b52bd4e
authored
Jun 10, 2021
by
John Parent
Browse files
Prevent improper use of rvalue
parent
df194469
Pipeline
#232694
passed with stages
in 12 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autopybind11/__main__.py
View file @
4b52bd4e
...
...
@@ -1159,20 +1159,19 @@ class BindingsGenerator:
# check if type is abstract here? Still will need to resolve the type
# then clear all vars and return, or just return, return null string, cause
# we cant bind (as of now)
arg_ret
=
""
if
self
.
opts
.
cxx14_flag
:
lambda_return
+=
(
self
.
opts
.
make_unique_fmt
.
format
(
type
=
type_
,
var
=
name
)
+
","
arg_ret
=
self
.
opts
.
make_unique_fmt
.
format
(
type
=
type_
,
var
=
name
)
else
:
lambda_return
+=
(
self
.
opts
.
compose_unique
.
format
(
type
=
type_
,
var
=
name
)
+
","
arg_ret
=
self
.
opts
.
compose_unique
.
format
(
type
=
type_
,
var
=
name
)
if
dec
.
type_traits
.
is_reference
(
arg
.
decl_type
):
lambda_body
+=
"auto uni_ptr = {};"
.
format
(
arg_ret
)
arg_ret
=
"uni_ptr"
lambda_return
+=
arg_ret
+
","
else
:
type_
=
arg
.
decl_type
.
decl_string
lambda_return
+=
name
+
", "
...
...
Write
Preview
Supports
Markdown
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