Stop relying on mapped_iterator's function having a result_type. That facility

is deprecated in modern C++ and unnecessary since decltype can be used to query
the relevant type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Smith 2016-03-24 19:10:58 +00:00
parent 2080172098
commit e4010bf95b

View File

@ -117,7 +117,9 @@ public:
iterator_category;
typedef typename std::iterator_traits<RootIt>::difference_type
difference_type;
typedef typename UnaryFunc::result_type value_type;
typedef typename std::result_of<
UnaryFunc(decltype(*std::declval<RootIt>()))>
::type value_type;
typedef void pointer;
//typedef typename UnaryFunc::result_type *pointer;