浏览代码

Merge pull request #5237 from Calinou/cpp-usage-guidelines-allow-for-range-loops

Remove outdated guideline about `for` range loops being forbidden
Max Hilbrunner 4 年之前
父节点
当前提交
9ad3eaec1e
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      community/contributing/cpp_usage_guidelines.rst

+ 0 - 6
community/contributing/cpp_usage_guidelines.rst

@@ -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
 ^^^^^^^