public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99958] New: The <algorithm> seems to contain the entire <vector> and <string> in C++20 mode
@ 2021-04-07 14:04 hewillk at gmail dot com
  2021-04-07 19:45 ` [Bug libstdc++/99958] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hewillk at gmail dot com @ 2021-04-07 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99958

            Bug ID: 99958
           Summary: The <algorithm> seems to contain the entire <vector>
                    and <string> in C++20 mode
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

I found that include <algorithm> will automatically include the entire <vector>
in C++17 mode, and both the <vector> and <string> will be automatically
included in C++20 mode:

https://godbolt.org/z/G5hrsaPKs

#include <algorithm>

int main() {
  std::string s{"hell"};
  s.push_back('o');
  std::vector<int> v{1, 2};
  v.push_back(3);
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-08  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 14:04 [Bug c++/99958] New: The <algorithm> seems to contain the entire <vector> and <string> in C++20 mode hewillk at gmail dot com
2021-04-07 19:45 ` [Bug libstdc++/99958] " redi at gcc dot gnu.org
2021-04-07 20:00 ` redi at gcc dot gnu.org
2021-04-08  8:51 ` redi at gcc dot gnu.org

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).