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:
parent
505839b339
commit
157b014ad8
@ -275,8 +275,8 @@ namespace triqs { namespace arrays {
|
|||||||
T a = 1/rhs; blas::scal(a,lhs);
|
T a = 1/rhs; blas::scal(a,lhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T, ull_t Opt, bool Borrowed>
|
||||||
void triqs_arrays_assign_delegation(vector_view<T> & av, std::vector<T> const& vec) {
|
void triqs_arrays_assign_delegation(vector_view<T,Opt,Borrowed> & av, std::vector<T> const& vec) {
|
||||||
std::size_t size = vec.size();
|
std::size_t size = vec.size();
|
||||||
for(std::size_t n = 0; n < size; ++n) av(n) = vec[n];
|
for(std::size_t n = 0; n < size; ++n) av(n) = vec[n];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user