3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 14:08:24 +01:00

arrays/vector: little correction on = std::vector

- forgot the borrowed flag.
simple consequence of the weak view change.
This commit is contained in:
Olivier Parcollet 2013-07-25 13:23:37 +02:00
parent 505839b339
commit 157b014ad8

View File

@ -275,8 +275,8 @@ namespace triqs { namespace arrays {
T a = 1/rhs; blas::scal(a,lhs);
}
template<typename T>
void triqs_arrays_assign_delegation(vector_view<T> & av, std::vector<T> const& vec) {
template<typename T, ull_t Opt, bool Borrowed>
void triqs_arrays_assign_delegation(vector_view<T,Opt,Borrowed> & av, std::vector<T> const& vec) {
std::size_t size = vec.size();
for(std::size_t n = 0; n < size; ++n) av(n) = vec[n];
}