r180672 - Documentation: add an idea for a cpp14-migrate transform for N3421
David Blaikie
dblaikie at gmail.com
Sun Apr 28 07:54:30 PDT 2013
On Apr 27, 2013 11:43 PM, "Dmitri Gribenko" <gribozavr at gmail.com> wrote:
>
> Author: gribozavr
> Date: Sat Apr 27 08:41:02 2013
> New Revision: 180672
>
> URL: http://llvm.org/viewvc/llvm-project?rev=180672&view=rev
> Log:
> Documentation: add an idea for a cpp14-migrate transform for N3421
I'm unfamiliar with n3421 in detail, but I assume this is a library
improvement based on the addition of optional class template parameters?
Could this then generalize to any case where an explicitly provided
argument patches a default? (Should we consider doing this for function
arguments as well as template arguments?)
>
> Modified:
> cfe/trunk/docs/ClangTools.rst
>
> Modified: cfe/trunk/docs/ClangTools.rst
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangTools.rst?rev=180672&r1=180671&r2=180672&view=diff
>
==============================================================================
> --- cfe/trunk/docs/ClangTools.rst (original)
> +++ cfe/trunk/docs/ClangTools.rst Sat Apr 27 08:41:02 2013
> @@ -175,3 +175,17 @@ can be incorporated into the ``auto`` tr
> that don't want to use ``auto`` because they are afraid that they
might lose
> control over their code.
>
> +* C++14: less verbose operator function objects (`N3421
> + <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3421.htm>`_).
> + For example:
> +
> + .. code-block:: c++
> +
> + sort(v.begin(), v.end(), greater<ValueType>());
> +
> + should be rewritten to:
> +
> + .. code-block:: c++
> +
> + sort(v.begin(), v.end(), greater<>());
> +
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130428/59d68d90/attachment.html>
More information about the cfe-commits
mailing list