From 59a35b75e10f1de98baa18be2108b35049075ab3 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Tue, 20 Nov 2018 16:41:32 +0100 Subject: [PATCH] Removed use of clone(). --- source/base/function_parser.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/base/function_parser.cc b/source/base/function_parser.cc index f1c30add30..a4446325bf 100644 --- a/source/base/function_parser.cc +++ b/source/base/function_parser.cc @@ -74,13 +74,12 @@ FunctionParser::FunctionParser(const std::string &expression, { auto constants_map = Patterns::Tools::Convert::to_value( constants, - Patterns::Map(Patterns::Anything(), - Patterns::Double(), - 0, - Patterns::Map::max_int_value, - ",", - "=") - .clone()); + std_cxx14::make_unique(Patterns::Anything(), + Patterns::Double(), + 0, + Patterns::Map::max_int_value, + ",", + "=")); initialize(variable_names, expression, constants_map, -- 2.39.5