From dcb13866309c988037f7a04e1c37047fe434c12c Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Mon, 21 Oct 2013 21:52:05 +0200 Subject: [PATCH] arrays const_matrix_tensor_proxy delete = --- triqs/arrays/matrix_tensor_proxy.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/triqs/arrays/matrix_tensor_proxy.hpp b/triqs/arrays/matrix_tensor_proxy.hpp index ba697e87..99e02747 100644 --- a/triqs/arrays/matrix_tensor_proxy.hpp +++ b/triqs/arrays/matrix_tensor_proxy.hpp @@ -62,6 +62,8 @@ namespace arrays { view_type operator()() const { return *this; } template value_type const &operator()(Args &&... args) const { return a(n, std::forward(args)...); } + template const_matrix_tensor_proxy &operator=(const RHS &X) =delete; // can not assign to a const + TRIQS_DELETE_COMPOUND_OPERATORS(const_matrix_tensor_proxy); friend std::ostream &operator<<(std::ostream &out, const_matrix_tensor_proxy const &x) { return out << view_type(x); } };