mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 05:43:40 +01:00
Correction: left some C++14 used in debug...
- decltype(auto) was left behind in 2 places...
This commit is contained in:
parent
e1c113b745
commit
a25f742b33
@ -294,10 +294,8 @@ namespace triqs { namespace clef {
|
||||
|
||||
template <typename Tag, typename... Childs, typename... Pairs> struct evaluator_node_gal<2, expr<Tag, Childs...>, Pairs...> {
|
||||
static constexpr bool is_lazy = __or(evaluator<Childs, Pairs...>::is_lazy...);
|
||||
decltype(auto) operator()(expr<Tag, Childs...> const &ex,
|
||||
Pairs const &... pairs) const {
|
||||
return op_dispatch<Tag, is_lazy> {}(eval(std::get<0>(ex.childs), pairs...), eval(std::get<1>(ex.childs), pairs...));
|
||||
}
|
||||
auto operator()(expr<Tag, Childs...> const& ex, Pairs const&... pairs) const
|
||||
DECL_AND_RETURN(op_dispatch<Tag, is_lazy> {}(eval(std::get<0>(ex.childs), pairs...), eval(std::get<1>(ex.childs), pairs...)));
|
||||
};
|
||||
|
||||
// the general case for more than 2 nodes. I put 1 and 2 nodes apart, just because it is the most frequent
|
||||
|
@ -55,8 +55,8 @@ namespace gfs {
|
||||
template <typename MeshType> evaluator_fnt_on_mesh(MeshType const &m, lattice::k_t const &k) {
|
||||
n = m.locate_neighbours(k); // TO BE IMPROVED
|
||||
}
|
||||
//template <typename F> auto operator()(F const &f) const DECL_AND_RETURN(f(k));
|
||||
template <typename F> decltype(auto) operator()(F const &f) const { return f(n); }
|
||||
template <typename F> auto operator()(F const &f) const DECL_AND_RETURN(f(n));
|
||||
//template <typename F> decltype(auto) operator()(F const &f) const { return f(n); }
|
||||
};
|
||||
|
||||
// ------------- evaluator -------------------
|
||||
|
Loading…
Reference in New Issue
Block a user