[gcc r14-9210] libstdc++: Include <bits/stl_iterator.h> in <bits/alloc_traits.h>

Jonathan Wakely redi@gcc.gnu.org
Wed Feb 28 11:29:31 GMT 2024


https://gcc.gnu.org/g:3c1e624a926dadee24f45beb1da84b12d135511a

commit r14-9210-g3c1e624a926dadee24f45beb1da84b12d135511a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Feb 21 15:12:49 2024 +0000

    libstdc++: Include <bits/stl_iterator.h> in <bits/alloc_traits.h>
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/alloc_traits.h: Include <bits/stl_iterator.h> for
            __make_move_if_noexcept_iterator.

Diff:
---
 libstdc++-v3/include/bits/alloc_traits.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libstdc++-v3/include/bits/alloc_traits.h b/libstdc++-v3/include/bits/alloc_traits.h
index 5e661e04741..82fc79c7b9f 100644
--- a/libstdc++-v3/include/bits/alloc_traits.h
+++ b/libstdc++-v3/include/bits/alloc_traits.h
@@ -38,6 +38,9 @@
 # if _GLIBCXX_HOSTED
 #  include <bits/allocator.h>
 # endif
+# if __cpp_exceptions
+#  include <bits/stl_iterator.h> // __make_move_if_noexcept_iterator
+# endif
 #endif
 
 namespace std _GLIBCXX_VISIBILITY(default)


More information about the Libstdc++-cvs mailing list