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

Eugene Zelenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 16 07:28:38 PDT 2017


Eugene.Zelenko added a comment.

Seems to be duplicate of https://reviews.llvm.org/D35455.



================
Comment at: include/llvm/ADT/STLExtras.h:61
+struct identity {
+  typedef Ty argument_type;
+  typedef Ty result_type;
----------------
Please use using instead. See http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-using.html. Same in other places.


https://reviews.llvm.org/D35456





More information about the llvm-commits mailing list