Commit 4b52bd4e authored by John Parent's avatar John Parent
Browse files

Prevent improper use of rvalue

parent df194469
Pipeline #232694 passed with stages
in 12 minutes and 23 seconds
......@@ -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 + ", "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment