提交 18efe5aa 编写于 作者: Y Yu Yang

Fix CI

上级 a43fac35
...@@ -240,7 +240,7 @@ class Vector { ...@@ -240,7 +240,7 @@ class Vector {
// implicit cast operator. Vector can be cast to std::vector implicitly. // implicit cast operator. Vector can be cast to std::vector implicitly.
operator std::vector<T>() const { operator std::vector<T>() const {
std::vector<T> result; std::vector<T> result;
if (size() == 0) { if (size() != 0) {
result.resize(size()); result.resize(size());
std::copy(begin(), end(), result.begin()); std::copy(begin(), end(), result.begin());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册