On Apr 27, 2013 11:43 PM, "Dmitri Gribenko" <[email protected]> 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 > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
