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

arrays const_matrix_tensor_proxy delete =

This commit is contained in:
Olivier Parcollet 2013-10-21 21:52:05 +02:00
parent e48a451550
commit dcb1386630

View File

@ -62,6 +62,8 @@ namespace arrays {
view_type operator()() const { return *this; }
template <typename... Args> value_type const &operator()(Args &&... args) const { return a(n, std::forward<Args>(args)...); }
template <typename RHS> 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); }
};