Skip to content

Commit

Permalink
Merge pull request #5237 from Calinou/cpp-usage-guidelines-allow-for-…
Browse files Browse the repository at this point in the history
…range-loops

Remove outdated guideline about `for` range loops being forbidden
  • Loading branch information
mhilbrunner authored Sep 12, 2021
2 parents a370c22 + 4964553 commit 9ad3eae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions community/contributing/cpp_usage_guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ pull requests.
We chose to forbid ``auto`` instead of allowing it on a case-by-case basis to
avoid having to decide on difficult edge cases. Thank you for your understanding.

``for`` range loop
^^^^^^^^^^^^^^^^^^

Don't use the ``for`` range loop syntax (``for (String string : some_array)``).
Use traditional ``for`` loops instead as they're more explicit.

Lambdas
^^^^^^^

Expand Down

0 comments on commit 9ad3eae

Please sign in to comment.