From patchwork Wed May 2 16:38:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Kosnik X-Patchwork-Id: 156488 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id B131BB6FAC for ; Thu, 3 May 2012 02:38:52 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1336581533; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:Mime-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=92vwenKclvDct9lku82y t61K33s=; b=phD/Xmf3bAb+UUbQ0N6Ir+eYDSvp0hXKOsqPCUE8m/1jlJ/VANaF +PehrYm4bXwAQ0pPem0KxQGcpJ8lqIEBRZrEN93aeNFoed+V+wSdl6F+vqVUalT/ CpnkyI7/OzkfM14PW4UpoReaxTZGIjbaF44GAtZrruy3vIwnl6GNQfc= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:Mime-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=kMfx/J3/fCGLgNcrIZSzZMnSjc7/poigeYiZpwYa0PhkOD6gtzXY0BUaQH2Ycb tk1Tq2BxTIfvm7RzQxkAPB2b/TItfSG7FGNIibb2BbChv/UpvvRHG4xHRbTTLDIV TxhIaj94xTIE+KdYYPfB03uGrHRltx3C1cKb1+O4vU7Fs=; Received: (qmail 29214 invoked by alias); 2 May 2012 16:38:40 -0000 Received: (qmail 28897 invoked by uid 22791); 2 May 2012 16:38:36 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 16:38:22 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q42GcM3h021410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 May 2012 12:38:22 -0400 Received: from adair (ovpn-113-64.phx2.redhat.com [10.3.113.64]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q42GcLOx019586; Wed, 2 May 2012 12:38:21 -0400 Date: Wed, 2 May 2012 09:38:34 -0700 From: Benjamin De Kosnik To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [v3] hashtable fw decl fix Message-ID: <20120502093834.7a1d7a5c@adair> Mime-Version: 1.0 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 This patchlette needed for versioned builds, just makes declaration/foward declaration consistent. -benjamin tested x86/linux tested x86/linux versioned namespaces diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h index 3b43510..a42d3d3 100644 --- a/libstdc++-v3/include/bits/hashtable_policy.h +++ b/libstdc++-v3/include/bits/hashtable_policy.h @@ -33,12 +33,16 @@ namespace std _GLIBCXX_VISIBILITY(default) { +_GLIBCXX_BEGIN_NAMESPACE_VERSION + template class _Hashtable; +_GLIBCXX_END_NAMESPACE_VERSION + namespace __detail { _GLIBCXX_BEGIN_NAMESPACE_VERSION