3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00

gf: triqs_auto_assign for gf_view

g[k][om] : missing an overload for views
This commit is contained in:
Olivier Parcollet 2014-05-30 22:27:13 +02:00
parent 446f817111
commit 3e0d53564a

View File

@ -574,6 +574,12 @@ namespace gfs {
gf_const_view<D, Target, Opt> g;
};
// Cf gf
template <typename RHS, typename Variable, typename Target, typename Opt>
void triqs_clef_auto_assign(gf_view<Variable, Target, Opt> &g, RHS const &rhs) {
triqs_clef_auto_assign( static_cast<gf_impl<Variable, Target, Opt, true, false>&>(g), rhs);
}
// ---------------------------------- slicing ------------------------------------
// slice