Re-commit r208025, reverted in r208030, with a fix for a conformance issue
[oota-llvm.git] / docs / CodingStandards.rst
index 0fcca0330f4bc83370ce1e623abc92f61fff9859..edbef3ace53c13d8e081c018e4ae305abca918e6 100644 (file)
@@ -108,6 +108,8 @@ unlikely to be supported by our host compilers.
 * Lambdas: N2927_
 
   * But *not* ``std::function``, until Clang implements `MSVC-compatible RTTI`_.
+    In many cases, you may be able to use ``llvm::function_ref`` instead, and it
+    is a superior choice in those cases.
   * And *not* lambdas with default arguments.
 
 * ``decltype``: N2343_