diff --git a/include/boost/compute/container/vector.hpp b/include/boost/compute/container/vector.hpp index 47d649ad..5ae6d933 100644 --- a/include/boost/compute/container/vector.hpp +++ b/include/boost/compute/container/vector.hpp @@ -252,6 +252,17 @@ public: return *this; } + template + vector& operator=(const vector &other) + { + command_queue queue = default_queue(); + resize(other.size(), queue); + ::boost::compute::copy(other.begin(), other.end(), begin(), queue); + queue.finish(); + + return *this; + } + template vector& operator=(const std::vector &vector) {