aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/util
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-10-29 11:25:24 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-10-29 11:25:24 -0700
commite7ed4bd388be80db9cc5689e623fbdd9e5cfdf7b (patch)
treeeeb905e8f418f9d7f5bbde7ebeced53111bc1c89 /unsupported/Eigen/CXX11/src/util
parentfbc0a9a3ec19bbe9106754ca4e4d3f382ce50530 (diff)
Remove internal::smart_copy and replace with std::copy
Diffstat (limited to 'unsupported/Eigen/CXX11/src/util')
-rw-r--r--unsupported/Eigen/CXX11/src/util/CXX11Meta.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h
index 1c770a32e..014f5116a 100644
--- a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h
+++ b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h
@@ -67,13 +67,11 @@ class array : public std::array<T, N> {
: Base{{v1, v2, v3, v4, v5, v6, v7, v8}} {
EIGEN_STATIC_ASSERT(N == 8, YOU_MADE_A_PROGRAMMING_MISTAKE);
}
-#if EIGEN_HAS_VARIADIC_TEMPLATES
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array(std::initializer_list<T> l) {
eigen_assert(l.size() == N);
- internal::smart_copy(l.begin(), l.end(), &this->front());
+ std::copy(l.begin(), l.end(), &this->front());
}
-#endif
};
namespace internal {