Skip to content

Commit 1ea8087

Browse files
Georgiy GuminovLastique
authored andcommitted
Check for compliance with output_iterator in function_output_iterator_test.
1 parent e4eaeea commit 1ea8087

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/function_output_iterator_test.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <boost/core/lightweight_test.hpp>
99
#include <boost/iterator/function_output_iterator.hpp>
1010

11+
#include <iterator>
12+
1113
namespace {
1214

1315
struct sum_func
@@ -57,5 +59,11 @@ int main()
5759
}
5860
#endif
5961

62+
#if defined(__cpp_lib_concepts) && ( __cpp_lib_concepts >= 202002L )
63+
64+
static_assert(std::output_iterator<decltype(boost::function_output_iterator([](int p) { })), int>);
65+
66+
#endif
67+
6068
return boost::report_errors();
6169
}

0 commit comments

Comments
 (0)