aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/array
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-06-06 16:34:56 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-06-06 16:34:56 +0100
commitbeb0086f592563ddd2b14444d4e2495b17b1d4bf (patch)
tree52e05cb8ed1b2cfac025a2012728c4fa8b8f6a8c /libstdc++-v3/include/std/array
parentad60f42883a5641d4d8e7f5e9017b473cec29f93 (diff)
downloadgcc-beb0086f592563ddd2b14444d4e2495b17b1d4bf.zip
gcc-beb0086f592563ddd2b14444d4e2495b17b1d4bf.tar.gz
gcc-beb0086f592563ddd2b14444d4e2495b17b1d4bf.tar.bz2
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
Diffstat (limited to 'libstdc++-v3/include/std/array')
-rw-r--r--libstdc++-v3/include/std/array2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/array b/libstdc++-v3/include/std/array
index 02c6f4b..230e2b0 100644
--- a/libstdc++-v3/include/std/array
+++ b/libstdc++-v3/include/std/array
@@ -36,7 +36,7 @@
#else
#include <utility>
-#include <stdexcept>
+#include <bits/functexcept.h>
#include <bits/stl_algobase.h>
#include <bits/range_access.h>