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