Make function_output_iterator compliant with std::output_iterator concept.

Fixes https://github.com/boostorg/iterator/issues/85.
Closes https://github.com/boostorg/iterator/pull/87.
This commit is contained in:
Andrey Semashev 2024-10-11 00:26:30 +03:00
parent 46ffe06b3d
commit e4eaeeac44

View File

@ -11,6 +11,7 @@
#ifndef BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
#define BOOST_ITERATOR_FUNCTION_OUTPUT_ITERATOR_HPP
#include <cstddef>
#include <iterator>
#include <boost/config.hpp>
#include <boost/core/enable_if.hpp>
@ -62,7 +63,7 @@ namespace iterators {
public:
typedef std::output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef std::ptrdiff_t difference_type;
typedef void pointer;
typedef void reference;