This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/86013] std::vector::shrink_to_fit() could sometimes use realloc()
- From: "jan.kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 May 2018 13:08:04 +0000
- Subject: [Bug libstdc++/86013] std::vector::shrink_to_fit() could sometimes use realloc()
- Auto-submitted: auto-generated
- References: <bug-86013-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86013
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
You apparently know better all the pitfalls, I just got shocked that a
squeezing shrink_to_fit() does a copy.