emailweixu-patch-1
Yu Yang 7 years ago
parent a43fac3567
commit 18efe5aa1d

@ -240,7 +240,7 @@ class Vector {
// implicit cast operator. Vector can be cast to std::vector implicitly.
operator std::vector<T>() const {
std::vector<T> result;
if (size() == 0) {
if (size() != 0) {
result.resize(size());
std::copy(begin(), end(), result.begin());
}

Loading…
Cancel
Save