From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2157 invoked by alias); 25 Feb 2005 22:40:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2120 invoked by uid 48); 25 Feb 2005 22:40:51 -0000 Date: Sat, 26 Feb 2005 18:32:00 -0000 Message-ID: <20050225224051.2119.qmail@sourceware.org> From: "bkoz at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050128064457.19664.andreas.pokorny@gmx.de> References: <20050128064457.19664.andreas.pokorny@gmx.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg03208.txt.bz2 List-Id: ------- Additional Comments From bkoz at gcc dot gnu dot org 2005-02-25 22:40 ------- Personally, I think the better approach for the libstdc++ parts is to allow __attribute__ visibility on namespace declarations. That way, all this goo could be removed, and centralized in one place. Ie, c++config.h could have something like: namespace std __attribute__ ((visibility ("default") )); { } And volia! We are done. (When I first saw this, I thought that the solution being proposed was mass decoration of std:: names with some kind of pseudo-__declspec bullshit. Of course, that is a non-starter, so I'm glad to see the thinking has evolved a bit.) -benjamin -- What |Removed |Added ---------------------------------------------------------------------------- CC| |bkoz at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664