mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
use Eigen smart_copy instead of std::copy
This commit is contained in:
parent
ebdacfc5ea
commit
0485a2468d
@ -107,7 +107,7 @@ template <typename T, size_t n> class array {
|
||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||
array(std::initializer_list<T> l) {
|
||||
eigen_assert(l.size() == n);
|
||||
std::copy(l.begin(), l.end(), values);
|
||||
internal::smart_copy(l.begin(), l.end(), values);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user