Skip to content

Commit 381cf92

Browse files
committed
Do not return const from postfix increment operator.
Turns out this doesn't work on Windows and the advice in https://www.securecoding.cert.org/confluence/display/cplusplus/DCL21-CPP.+Overloaded+postfix+increment+and+decrement+operators+should+return+a+const+object this change was based probably isn't all that great. Reverses part of f5eda16.
1 parent 46ec985 commit 381cf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/osmium/io/output_iterator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace osmium {
105105
return *this;
106106
}
107107

108-
const OutputIterator operator++(int) noexcept {
108+
OutputIterator operator++(int) noexcept {
109109
return *this;
110110
}
111111

0 commit comments

Comments
 (0)