Skip to content

Commit

Permalink
script_interface: Fixed build with c++17 (#3824)
Browse files Browse the repository at this point in the history
C++17 introduces `std::as_const` which made some calls to `Utils::as_const` ambiguous, this fixes this by qualifying the function.
  • Loading branch information
kodiakhq[bot] authored Jul 27, 2020
2 parents a6d9304 + fa62727 commit b61090a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/script_interface/accumulators/Correlator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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}});
}

Expand Down

0 comments on commit b61090a

Please sign in to comment.