DR 13631 patch

Paolo Carlini pcarlini@gmail.com
Wed Feb 22 21:19:00 GMT 2012


Hi,

> I am surprised that it is not already the case, and perhaps it is, I am not very comfortable with this. I though that the build would export only the messages<char>::do_open, messages<char>::do_close and wchar_t versions methods. I was expecting the _Rb_tree implementation detail to be fully hidden. Do you know how to achieve this ?

Well I didn't look in detail into the patch, but for sure, in general terms, no matter what you decide do in terms of the actual code, the linker script, which you can certainly tweak, ultimately decides what is exported and what is not. And the data structure itself should be static in the *.cc file. But I'm not sure to fully get your point, to be honest.

Paolo



More information about the Libstdc++ mailing list