提交 190119bb 编写于 作者: Y Yu Yang

Extract for-loop init. Make nvcc happy

上级 ae2296e8
......@@ -247,8 +247,9 @@ class Vector {
bool operator==(const Vector<T>& other) const {
if (size() != other.size()) return false;
for (const T *it1 = cbegin(), it2 = other.cbegin(); it1 < cend();
++it1, ++it2) {
auto it1 = cbegin();
auto it2 = other.cbegin();
for (; it1 < cend(); ++it1, ++it2) {
if (*it1 != *it2) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册