diff --git a/Examples/src/QuadratureRule/baseVersion/QuadratureRuleAdaptive.hpp b/Examples/src/QuadratureRule/baseVersion/QuadratureRuleAdaptive.hpp index f15e4fb4..71f9270b 100644 --- a/Examples/src/QuadratureRule/baseVersion/QuadratureRuleAdaptive.hpp +++ b/Examples/src/QuadratureRule/baseVersion/QuadratureRuleAdaptive.hpp @@ -38,7 +38,7 @@ class QuadratureRuleAdaptive final : public QuadratureRuleBase //! /*!@{*/ constexpr unsigned int - num_nodes()const + num_nodes() const { return therule_.num_nodes(); } @@ -97,8 +97,7 @@ template std::unique_ptr QuadratureRuleAdaptive::clone() const { - return std::unique_ptr( - new QuadratureRuleAdaptive(*this)); + return std::make_unique>(*this); } /*! @@ -113,10 +112,10 @@ QuadratureRuleAdaptive::apply(FunPoint const &f, double const &a, using std::make_pair; using std::pair; using std::queue; - unsigned int counter(0); - double result(0); - double dSize = b - a; - queue > subint; + unsigned int counter(0); + double result(0); + double dSize = b - a; + queue> subint; subint.push(make_pair(a, b)); while(counter < maxIter_ && !subint.empty()) diff --git a/Examples/src/QuadratureRule/baseVersion/QuadratureRulePlusError.hpp b/Examples/src/QuadratureRule/baseVersion/QuadratureRulePlusError.hpp index 2b16028f..8f003a02 100644 --- a/Examples/src/QuadratureRule/baseVersion/QuadratureRulePlusError.hpp +++ b/Examples/src/QuadratureRule/baseVersion/QuadratureRulePlusError.hpp @@ -105,8 +105,7 @@ template std::unique_ptr QuadratureRulePlusError::clone() const { - return std::unique_ptr( - new QuadratureRulePlusError(*this)); + return std::make_unique >(*this); } /*! diff --git a/Examples/src/QuadratureRule/baseVersion/montecarlo.cpp b/Examples/src/QuadratureRule/baseVersion/montecarlo.cpp index 43bf30f5..b946360a 100644 --- a/Examples/src/QuadratureRule/baseVersion/montecarlo.cpp +++ b/Examples/src/QuadratureRule/baseVersion/montecarlo.cpp @@ -12,7 +12,7 @@ MonteCarlo::MonteCarlo() std::unique_ptr MonteCarlo::clone() const { - return std::unique_ptr(new MonteCarlo(*this)); + return std::make_unique(*this); } void