Merge pull request #35 from morinmorin/fix_result_of_in_transform_iterator

Fix usage of decltype-based result_of in transform_iterator.
This commit is contained in:
Andrey Semashev 2017-09-18 01:23:43 +03:00 committed by GitHub
commit 7442334ce1

View File

@ -47,7 +47,11 @@ namespace iterators {
// the function.
typedef typename ia_dflt_help<
Reference
#ifdef BOOST_RESULT_OF_USE_TR1
, result_of<const UnaryFunc(typename std::iterator_traits<Iterator>::reference)>
#else
, result_of<const UnaryFunc&(typename std::iterator_traits<Iterator>::reference)>
#endif
>::type reference;
// To get the default for Value: remove any reference on the