From: Jonathan Wakely Date: Tue, 10 Dec 2019 16:15:55 +0000 (+0000) Subject: libstdc++: Reduce header dependencies in X-Git-Tag: upstream/12.2.0~19730 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b65bdd27fd96afa3074308de18d6a54c67ba6aef;p=platform%2Fupstream%2Fgcc.git libstdc++: Reduce header dependencies in * include/std/span: Do not include and . (tuple_size, tuple_element): Declare. From-SVN: r279171 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f25e040..38c8441 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-12-10 Jonathan Wakely + * include/std/span: Do not include and . + (tuple_size, tuple_element): Declare. + * include/bits/iterator_concepts.h (indirect_result_t): Do not apply iter_reference_t to parameter pack. * testsuite/24_iterators/indirect_callable/projected.cc: New test. diff --git a/libstdc++-v3/include/std/span b/libstdc++-v3/include/std/span index f215dec..ecce0b3 100644 --- a/libstdc++-v3/include/std/span +++ b/libstdc++-v3/include/std/span @@ -39,8 +39,6 @@ #if __cplusplus > 201703L #include -#include -#include #include #include #include @@ -451,6 +449,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return __sp[_Index]; } + template struct tuple_size; + template struct tuple_element; + template struct tuple_size> : public integral_constant