]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid unnecessary inclusion of <stdexcept> header
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jun 2019 15:34:56 +0000 (15:34 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jun 2019 15:34:56 +0000 (15:34 +0000)
commit9eb6db53fb072e20b1d54b16d8c1c77638c934e5
tree52e05cb8ed1b2cfac025a2012728c4fa8b8f6a8c
parent2bc51486854314b620cc92a0a1dff5a9be5cb831
Avoid unnecessary inclusion of <stdexcept> header

This can greatly reduce the amount of preprocessed code that is included
by other headers, because <stdexcept> depends on <string> which is huge.

* include/std/array: Do not include <stdexcept>.
* include/std/optional: Include <exception> and
<bits/exception_defines.h> instead of <stdexcept>.
* testsuite/20_util/function_objects/searchers.cc: Include <cctype>
for std::isalnum.
* testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
std::allocator.
* testsuite/23_containers/map/erasure.cc: Include <string>.
* testsuite/23_containers/unordered_map/erasure.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272011 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/array
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/function_objects/searchers.cc
libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc
libstdc++-v3/testsuite/23_containers/map/erasure.cc
libstdc++-v3/testsuite/23_containers/unordered_map/erasure.cc