summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util/tuple
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/testsuite/20_util/tuple
parentad60f42883a5641d4d8e7f5e9017b473cec29f93 (diff)
downloadgcc-beb0086f592563ddd2b14444d4e2495b17b1d4bf.tar.gz
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/testsuite/20_util/tuple')
-rw-r--r--libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc
index fa91f8fa539..eb3f2f3d6ab 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc
@@ -19,6 +19,7 @@
// <http://www.gnu.org/licenses/>.
#include <tuple>
+#include <memory>
template<typename T, typename U> struct require_same;
template<typename T> struct require_same<T, T> { using type = void; };