diff --git a/triqs/gfs/imfreq.hpp b/triqs/gfs/imfreq.hpp index b2203e96..0d8d5ec9 100644 --- a/triqs/gfs/imfreq.hpp +++ b/triqs/gfs/imfreq.hpp @@ -69,8 +69,6 @@ namespace gfs { // handle the case where the matsu. freq is out of grid... template struct evaluator { static constexpr int arity = 1; - // TO BE REMOVED - template auto operator()(G const *g, int n) const DECL_AND_RETURN((*g)[n]); private: template int sh(G const * g) const { return (g->mesh().domain().statistic == Fermion ? 1 : 0);} @@ -144,6 +142,9 @@ namespace gfs { return _call_impl(g, f, Target{}, std::integral_constant::value>{}); } + // int -> replace by matsubara_freq + template auto operator()(G const *g, int n) const DECL_AND_RETURN((*g)(matsubara_freq(n,g->mesh().domain().beta,g->mesh().domain().statistic))); + #ifdef __clang__ // to generate a clearer error message ? . Only ok on clang ? template struct error {