[libcxx-commits] [libcxx] [libc++] Remove <string> and <vector> includes from <flat_map> (PR #114876)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 4 23:09:43 PST 2024


================
@@ -52,10 +53,9 @@
 #include <__type_traits/maybe_const.h>
 #include <__utility/exception_guard.h>
 #include <__utility/pair.h>
+#include <__vector/vector.h>
 #include <initializer_list>
 #include <stdexcept>
-#include <string>
----------------
huixie90 wrote:

Good question. I think it might be the case where originally we are throwing some specific exceptions that tells users the flat_map has been cleared after a failed operation which ends up creating some strings. But that part has been removed and the string header might be left over

https://github.com/llvm/llvm-project/pull/114876


More information about the libcxx-commits mailing list