From 6984fbb467e774f197d68ae7e64afdd62b9552c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Thu, 10 Jun 2021 15:11:34 +0200 Subject: [PATCH] M #-: Use only c++11 because of CentOS7 (#1291) --- SConstruct | 2 +- src/vm/VirtualMachineTemplate.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 310a8212c3..f8a0764a24 100755 --- a/SConstruct +++ b/SConstruct @@ -119,7 +119,7 @@ main_env.Append(LIBPATH=[ main_env.Append(CPPFLAGS=[ "-g", "-Wall", - "-std=c++14" + "-std=c++11" ]) # Linking flags & common libraries diff --git a/src/vm/VirtualMachineTemplate.cc b/src/vm/VirtualMachineTemplate.cc index c685d4c43f..b39174f1ac 100644 --- a/src/vm/VirtualMachineTemplate.cc +++ b/src/vm/VirtualMachineTemplate.cc @@ -274,7 +274,7 @@ static void copy_vector_values(const Template *old_tmpl, Template *new_tmpl, unique_ptr VirtualMachineTemplate::get_updateconf_template() const { - auto conf_tmpl = make_unique(); + auto conf_tmpl = unique_ptr(new VirtualMachineTemplate()); copy_vector_values(this, conf_tmpl.get(), "OS");