public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10297] libstdc++: Add missing header to <bits/stl_iterator.h>
@ 2021-11-26 12:52 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-11-26 12:52 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:cdc0a310817a8a3a6d038a51c52696c2aa1405fb

commit r10-10297-gcdc0a310817a8a3a6d038a51c52696c2aa1405fb
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Nov 26 00:34:52 2021 +0000

    libstdc++: Add missing header to <bits/stl_iterator.h>
    
    When included from <debug/functions.h> it's possible for
    <bits/stl_iterator.h> to be included without its prerequisites having
    been included first. For gcc-11 this was fixed as part of r11-7604, this
    fixes it for gcc-10 too.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/stl_iterator.h: Include required header for
            std::iterator class template and iterator category tags.

Diff:
---
 libstdc++-v3/include/bits/stl_iterator.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/include/bits/stl_iterator.h b/libstdc++-v3/include/bits/stl_iterator.h
index ae971ba12a1..8857813e691 100644
--- a/libstdc++-v3/include/bits/stl_iterator.h
+++ b/libstdc++-v3/include/bits/stl_iterator.h
@@ -61,6 +61,7 @@
 #define _STL_ITERATOR_H 1
 
 #include <bits/cpp_type_traits.h>
+#include <bits/stl_iterator_base_types.h>
 #include <ext/type_traits.h>
 #include <bits/move.h>
 #include <bits/ptr_traits.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-26 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 12:52 [gcc r10-10297] libstdc++: Add missing header to <bits/stl_iterator.h> Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).