mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-29 12:27:33 +02:00
Work around compilation errors on clang-10 through 12.
This commit is contained in:
@ -60,9 +60,10 @@ int main()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cpp_lib_concepts) && ( __cpp_lib_concepts >= 202002L )
|
#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
|
#endif
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
|
Reference in New Issue
Block a user