Skip to content

Commit e4eaeea

Browse files
committed
Make function_output_iterator compliant with std::output_iterator concept.
Fixes #85. Closes #87.
1 parent 46ffe06 commit e4eaeea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/iterator/function_output_iterator.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
1212
#define BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
1313

14+
#include <cstddef>
1415
#include <iterator>
1516
#include <boost/config.hpp>
1617
#include <boost/core/enable_if.hpp>
@@ -62,7 +63,7 @@ namespace iterators {
6263
public:
6364
typedef std::output_iterator_tag iterator_category;
6465
typedef void value_type;
65-
typedef void difference_type;
66+
typedef std::ptrdiff_t difference_type;
6667
typedef void pointer;
6768
typedef void reference;
6869

0 commit comments

Comments
 (0)