Skip to content

Commit

Permalink
add operator++(int) for transranger
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed Mar 15, 2023
1 parent 6947946 commit e73eb5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ option(INSTALL_ONLY "Enable for installation only" OFF)
# Note: update this to your new project's name and version
project(
Py2Cpp
VERSION 1.4
VERSION 1.4.1
LANGUAGES CXX
)

Expand Down
5 changes: 5 additions & 0 deletions include/py2cpp/dict.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ template <typename Iter> struct key_iterator : Iter {
Iter::operator++();
return *this;
}
auto operator++(int) -> key_iterator {
auto old = *this;
++*this;
return old;
}
};

/**
Expand Down

0 comments on commit e73eb5e

Please sign in to comment.