mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-09 23:23:54 +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/iterator/function_output_iterator.hpp>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
namespace {
|
||||
|
||||
struct sum_func
|
||||
@ -57,5 +59,11 @@ int main()
|
||||
}
|
||||
#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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user