]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/std/array
Avoid unnecessary inclusion of <stdexcept> header
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jun 2019 15:34:56 +0000 (16:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 6 Jun 2019 15:34:56 +0000 (16:34 +0100)
commitbeb0086f592563ddd2b14444d4e2495b17b1d4bf
tree52e05cb8ed1b2cfac025a2012728c4fa8b8f6a8c
parentad60f42883a5641d4d8e7f5e9017b473cec29f93
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.

From-SVN: r272011
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