[llvm] r212148 - Remove the recommendation against using std::function
Reid Kleckner
reid at kleckner.net
Tue Jul 1 17:42:07 PDT 2014
Author: rnk
Date: Tue Jul 1 19:42:07 2014
New Revision: 212148
URL: http://llvm.org/viewvc/llvm-project?rev=212148&view=rev
Log:
Remove the recommendation against using std::function
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.
Modified:
llvm/trunk/docs/CodingStandards.rst
Modified: llvm/trunk/docs/CodingStandards.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodingStandards.rst?rev=212148&r1=212147&r2=212148&view=diff
==============================================================================
--- llvm/trunk/docs/CodingStandards.rst (original)
+++ llvm/trunk/docs/CodingStandards.rst Tue Jul 1 19:42:07 2014
@@ -107,10 +107,7 @@ unlikely to be supported by our host com
* 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_
More information about the llvm-commits
mailing list