From fa6272785d6af2d9e607cdadb6327bb507a19b55 Mon Sep 17 00:00:00 2001 From: Florian Weik Date: Mon, 27 Jul 2020 17:32:09 +0200 Subject: [PATCH] script_interface: Fixed build with c++17 --- src/script_interface/accumulators/Correlator.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/script_interface/accumulators/Correlator.hpp b/src/script_interface/accumulators/Correlator.hpp index c5b51878c10..3d9d0b9a6d0 100644 --- a/src/script_interface/accumulators/Correlator.hpp +++ b/src/script_interface/accumulators/Correlator.hpp @@ -42,7 +42,6 @@ class Correlator : public AccumulatorBase { public: Correlator() { - using Utils::as_const; /* Only args can be changed after construction. */ add_parameters( {{"tau_lin", m_correlator, &CoreCorr::tau_lin}, @@ -53,8 +52,8 @@ class Correlator : public AccumulatorBase { {"args", m_correlator, &CoreCorr::set_correlation_args, &CoreCorr::correlation_args}, {"dim_corr", m_correlator, &CoreCorr::dim_corr}, - {"obs1", as_const(m_obs1)}, - {"obs2", as_const(m_obs2)}, + {"obs1", Utils::as_const(m_obs1)}, + {"obs2", Utils::as_const(m_obs2)}, {"n_result", m_correlator, &CoreCorr::n_result}}); }