summaryrefslogtreecommitdiff
path: root/boost/compute/container/valarray.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/container/valarray.hpp')
-rw-r--r--boost/compute/container/valarray.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/boost/compute/container/valarray.hpp b/boost/compute/container/valarray.hpp
index 8ac8e01753..981ec2e545 100644
--- a/boost/compute/container/valarray.hpp
+++ b/boost/compute/container/valarray.hpp
@@ -67,6 +67,7 @@ public:
valarray(const valarray<T> &other)
: m_buffer(other.m_buffer.get_context(), other.size() * sizeof(T))
{
+ copy(other.begin(), other.end(), begin());
}
valarray(const std::valarray<T> &valarray,