From 719a87f779fbfb76b70bfc7e7d9867ef1e5588e4 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Thu, 10 Nov 2022 10:06:42 -0600 Subject: [PATCH] Have bits/allocator.h include bits/stl_iterator.h Fixes ``` error: call to function '__make_move_if_noexcept_iterator' that is neither visible in the template definition nor found by argument-dependent lookup _Tp(__make_move_if_noexcept_iterator(__c.begin()), ``` --- libstdc++-v3/include/bits/allocator.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/bits/allocator.h b/libstdc++-v3/include/bits/allocator.h index 6763344733b74..cfcae7953043a 100644 --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -46,6 +46,9 @@ #include // Define the base class to std::allocator. #include #if __cplusplus >= 201103L +#if __cpp_exceptions +#include // for __make_move_if_noexcept_iterator, used by shrink_to_fit +#endif #include #endif