Remove the recommendation against using std::function
authorReid Kleckner <reid@kleckner.net>
Wed, 2 Jul 2014 00:42:07 +0000 (00:42 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 2 Jul 2014 00:42:07 +0000 (00:42 +0000)
Clang-cl supports MSVC-style RTTI now, and we can even compile
typeid(...) with /GR-.  Just don't instantiate std::function with a
polymorphic type, or bad things will happen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212148 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CodingStandards.rst

index edbef3ace53c13d8e081c018e4ae305abca918e6..3cfa1f66ab4ef09b42dfaacbc0decaf04a11bd04 100644 (file)
@@ -107,10 +107,7 @@ unlikely to be supported by our host compilers.
 * Trailing return types: N2541_
 * 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.
+  * But *not* lambdas with default arguments.
 
 * ``decltype``: N2343_
 * Nested closing right angle brackets: N1757_