mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Replace ugly BOOST_DEDUCED_TYPENAME
with typename
.
This commit is contained in:
@ -31,9 +31,9 @@ namespace iterators {
|
|||||||
class function_input_iterator
|
class function_input_iterator
|
||||||
: public iterator_facade<
|
: public iterator_facade<
|
||||||
function_input_iterator<Function, Input>,
|
function_input_iterator<Function, Input>,
|
||||||
BOOST_DEDUCED_TYPENAME result_of<Function ()>::type,
|
typename result_of<Function ()>::type,
|
||||||
single_pass_traversal_tag,
|
single_pass_traversal_tag,
|
||||||
BOOST_DEDUCED_TYPENAME result_of<Function ()>::type const &
|
typename result_of<Function ()>::type const &
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -49,7 +49,7 @@ namespace iterators {
|
|||||||
++state;
|
++state;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_DEDUCED_TYPENAME result_of<Function ()>::type const &
|
typename result_of<Function ()>::type const &
|
||||||
dereference() const {
|
dereference() const {
|
||||||
return (value ? value : value = (*f)()).get();
|
return (value ? value : value = (*f)()).get();
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ namespace iterators {
|
|||||||
private:
|
private:
|
||||||
Function * f;
|
Function * f;
|
||||||
Input state;
|
Input state;
|
||||||
mutable optional<BOOST_DEDUCED_TYPENAME result_of<Function ()>::type> value;
|
mutable optional<typename result_of<Function ()>::type> value;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Function, class Input>
|
template <class Function, class Input>
|
||||||
|
Reference in New Issue
Block a user