Commit 49ec645d authored by John Parent's avatar John Parent
Browse files

Prevent unique_ptr in CTOR when cxx14 flag off

parent 935f5d8a
Pipeline #230464 failed with stages
in 19 minutes and 4 seconds
......@@ -1929,7 +1929,10 @@ class BindingsGenerator:
constructor_str += self.constructor_shared_stl_lambda(
constructorObj
)
if self.check_unique_ptr(constructorObj):
if (
self.check_unique_ptr(constructorObj)
and self.opts.cxx14_flag
):
constructor_str += self.constructor_unique_lambda(
constructorObj
)
......
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