mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
arrays const_matrix_tensor_proxy delete =
This commit is contained in:
parent
e48a451550
commit
dcb1386630
@ -62,6 +62,8 @@ namespace arrays {
|
|||||||
view_type operator()() const { return *this; }
|
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... 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);
|
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); }
|
friend std::ostream &operator<<(std::ostream &out, const_matrix_tensor_proxy const &x) { return out << view_type(x); }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user