From 64cd55a12676cf108f89438dfa7b47b9c1cf0b75 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 6 May 2014 07:45:39 +0000 Subject: Update programmers manual to cover llvm::function_ref, and add a note to the coding standard suggesting using it instead of the (unavailable) std::function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208067 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodingStandards.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/CodingStandards.rst') diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst index 0fcca0330f..edbef3ace5 100644 --- a/docs/CodingStandards.rst +++ b/docs/CodingStandards.rst @@ -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_ -- cgit v1.2.3