Work around compilation errors on clang-10 through 12.

This commit is contained in:
Andrey Semashev
2024-10-11 01:04:21 +03:00
parent 7c55a6cef8
commit 4b40364d6d

View File

@ -60,9 +60,10 @@ 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>);
{
auto func = [](int) {};
static_assert(std::output_iterator< boost::iterators::function_output_iterator< decltype(func) >, int >);
}
#endif
return boost::report_errors();