mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-11 05:23:52 +00:00
Check for compliance with output_iterator in function_output_iterator_test.
This commit is contained in:
parent
e4eaeeac44
commit
1ea8087623
@ -8,6 +8,8 @@
|
|||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/iterator/function_output_iterator.hpp>
|
#include <boost/iterator/function_output_iterator.hpp>
|
||||||
|
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
struct sum_func
|
struct sum_func
|
||||||
@ -57,5 +59,11 @@ int main()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__cpp_lib_concepts) && ( __cpp_lib_concepts >= 202002L )
|
||||||
|
|
||||||
|
static_assert(std::output_iterator<decltype(boost::function_output_iterator([](int p) { })), int>);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user