[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Feb 26 18:32:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list