Skip to content

Commit 4b40364

Browse files
committed
Work around compilation errors on clang-10 through 12.
1 parent 7c55a6c commit 4b40364

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/function_output_iterator_test.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ int main()
6060
#endif
6161

6262
#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-
63+
{
64+
auto func = [](int) {};
65+
static_assert(std::output_iterator< boost::iterators::function_output_iterator< decltype(func) >, int >);
66+
}
6667
#endif
6768

6869
return boost::report_errors();

0 commit comments

Comments
 (0)