Follow up commits 41e54690f914ece7bc70e2ae695dd183ebf1fd53, db63152657031bdd127144750a3990b34105d8b9 and 533b62d2c46e5efe57a569c4ee1e890536de671c
by also making prefix increment and decrement not [[nodiscard]].
main.cpp2: In function 'int main()':
main.cpp2:10:31: error: ignoring return value of 'const iterator& iterator::operator++() const', declared with attribute 'nodiscard' [-Werror=unused-result]
10 | for range() do (x) _ = x;
| ^
main.cpp2:3:22: note: declared here
3 | operator++: (this) -> forward iterator = this;
| ^~~~~~~~
cc1plus: some warnings being treated as errors
Follow up commits 41e54690f914ece7bc70e2ae695dd183ebf1fd53, db63152657031bdd127144750a3990b34105d8b9 and 533b62d2c46e5efe57a569c4ee1e890536de671c by also making prefix increment and decrement not
[[nodiscard]]
.See https://github.com/hsutter/cppfront/issues/231#issuecomment-1657276427: