[PATCH] D36049: [Resubmitted] Remove uses of deprecated std::unary_function, binary_function, and pointer_to_unary_function.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 13:10:10 PDT 2017


dblaikie added inline comments.


================
Comment at: include/llvm/ADT/STLExtras.h:61-62
+struct identity {
+  using argument_type = Ty;
+  using result_type = Ty;
+
----------------
Should these changes be adding all these typedefs? I assume the reason std::unary_function et. al. are deprecated is that callers should likely be using decltype & similar things to work here instead?


https://reviews.llvm.org/D36049





More information about the llvm-commits mailing list