From patchwork Tue Dec 10 16:16:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1207155 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515617-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="D7czG5bE"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="NarayciD"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47XQF12v1pz9sPc for ; Wed, 11 Dec 2019 03:17:07 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=tg84f9SRDuytSRIYr6ZMeSpMn/1Pf8Kgop0YBuBP+SCH+wYeF8oJk 8op1CIwkivIOl2yHFQsDOcMW96VjQ0thohYvwv0x/8oi3SR5v4CmKQZ9q/13tQhG d+rjTupPRLx8zKtwXYLQ0Bw04oSv2G2gItBLnqpLZkFvD3gU9jxvr8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=Vj71Qt1PlzYKQ4CcI1wh6gyumwA=; b=D7czG5bEsRUqulPyP7Hr v5C/1l6fP+f+WDRKUHiuYem0ZnS4WP7X5BtGMExmpXkBVt4sWTd9ztcGG6uvP3IU Kj7DtzJfMK/L2XtsLQ7ehED16bJNXGKg/nh0wfBG3+mCneWa8X5reVjxkyPtTZN3 s77myzu/+1ZbHG2+1j8qsLU= Received: (qmail 90605 invoked by alias); 10 Dec 2019 16:16:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 90552 invoked by uid 89); 10 Dec 2019 16:16:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=unavailable version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Dec 2019 16:16:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575994612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=dcClLunvN5+Rk9c1On2ArX/MyzLHf4gMNHsAXRVlAaM=; b=NarayciD9Z42MBYXQlpkoiOBFaezdg4g8H2pgf/eynj34BbIfMOw7nuvF4rdvKYorYkam/ 6u1mI1x3u2o1wuxOmlBmJ5Rvw3XogUmei4Up4M3jw+yI7pPWbpqmplpCPmaoD6Qhzaq8Zi zAZGslH8H8o+UvIS+9xhBnrYJuh160g= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-321-HJyrClDNMACWajg1dnJRHQ-1; Tue, 10 Dec 2019 11:16:49 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AF64A100A14B; Tue, 10 Dec 2019 16:16:47 +0000 (UTC) Received: from localhost (unknown [10.33.36.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E3165C548; Tue, 10 Dec 2019 16:16:47 +0000 (UTC) Date: Tue, 10 Dec 2019 16:16:46 +0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] libstdc++: Reduce header dependencies in Message-ID: <20191210161646.GA2035213@redhat.com> MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.12.1 (2019-06-15) X-Mimecast-Spam-Score: 0 Content-Disposition: inline * include/std/span: Do not include and . (tuple_size, tuple_element): Declare. Tested powerpc64le-linux, committed to trunk. commit a32163a1de2a84dde15df80dd33e54a57746d6eb Author: Jonathan Wakely Date: Tue Dec 10 15:59:54 2019 +0000 libstdc++: Reduce header dependencies in * include/std/span: Do not include and . (tuple_size, tuple_element): Declare. diff --git a/libstdc++-v3/include/std/span b/libstdc++-v3/include/std/span index f215decb453..ecce0b33b0b 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