mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
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. llvm-svn: 212148
This commit is contained in:
parent
db2f596d56
commit
7067950c24
@ -107,10 +107,7 @@ unlikely to be supported by our host compilers.
|
|||||||
* Trailing return types: N2541_
|
* Trailing return types: N2541_
|
||||||
* Lambdas: N2927_
|
* Lambdas: N2927_
|
||||||
|
|
||||||
* But *not* ``std::function``, until Clang implements `MSVC-compatible RTTI`_.
|
* But *not* lambdas with default arguments.
|
||||||
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_
|
* ``decltype``: N2343_
|
||||||
* Nested closing right angle brackets: N1757_
|
* Nested closing right angle brackets: N1757_
|
||||||
|
Loading…
Reference in New Issue
Block a user