mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 21:07:20 +02:00
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:
@ -47,7 +47,11 @@ namespace iterators {
|
|||||||
// the function.
|
// the function.
|
||||||
typedef typename ia_dflt_help<
|
typedef typename ia_dflt_help<
|
||||||
Reference
|
Reference
|
||||||
|
#ifdef BOOST_RESULT_OF_USE_TR1
|
||||||
, result_of<const UnaryFunc(typename std::iterator_traits<Iterator>::reference)>
|
, result_of<const UnaryFunc(typename std::iterator_traits<Iterator>::reference)>
|
||||||
|
#else
|
||||||
|
, result_of<const UnaryFunc&(typename std::iterator_traits<Iterator>::reference)>
|
||||||
|
#endif
|
||||||
>::type reference;
|
>::type reference;
|
||||||
|
|
||||||
// To get the default for Value: remove any reference on the
|
// To get the default for Value: remove any reference on the
|
||||||
|
Reference in New Issue
Block a user