You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2022/07/19 16:08:10 UTC

[tvm] branch main updated: [Fix] post-fix incre/decre should not return reference (#12128)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new ff8d2c77df [Fix] post-fix incre/decre should not return reference (#12128)
ff8d2c77df is described below

commit ff8d2c77dfcd3d4b50d78f0f55a3fc6972ffe3b0
Author: Jiawei Liu <ja...@gmail.com>
AuthorDate: Tue Jul 19 11:08:03 2022 -0500

    [Fix] post-fix incre/decre should not return reference (#12128)
---
 include/tvm/runtime/container/base.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/tvm/runtime/container/base.h b/include/tvm/runtime/container/base.h
index 4112c213d6..262041e2ff 100644
--- a/include/tvm/runtime/container/base.h
+++ b/include/tvm/runtime/container/base.h
@@ -255,12 +255,12 @@ class ReverseIterAdapter {
     ++iter_;
     return *this;
   }
-  ReverseIterAdapter& operator++(int) {
+  ReverseIterAdapter operator++(int) {
     ReverseIterAdapter copy = *this;
     --iter_;
     return copy;
   }
-  ReverseIterAdapter& operator--(int) {
+  ReverseIterAdapter operator--(int) {
     ReverseIterAdapter copy = *this;
     ++iter_;
     return copy;