]> granicus.if.org Git - llvm/commitdiff
Remove unnecessary use of std::result_of, which is deprecated in C++17.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Mar 2017 21:02:31 +0000 (21:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 Mar 2017 21:02:31 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298645 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/STLExtras.h

index 2d475e10738759847c672dabf8424b9d0bda00fd..15945adbe589a4634e2dbf2738866467db2b9a94 100644 (file)
@@ -140,9 +140,8 @@ public:
           iterator_category;
   typedef typename std::iterator_traits<RootIt>::difference_type
           difference_type;
-  typedef typename std::result_of<
-            UnaryFunc(decltype(*std::declval<RootIt>()))>
-          ::type value_type;
+  typedef decltype(std::declval<UnaryFunc>()(*std::declval<RootIt>()))
+          value_type;
 
   typedef void pointer;
   //typedef typename UnaryFunc::result_type *pointer;