This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Thanks for the tip, indeed with the explicit instantiation it works. Here is attached what I came to.
The issue is that the entire *.so is built with no implicit templates, thus the error, because during the build the implicit instantiation of a template (required elsewhere in the *.so) is suppressed. In general, we have explicit instantiation *.cc files in /src for that reason. Anyway, I'm indeed quite dubious that the way to go is using<map> as an implementation detail, it would be the first time we do something similar. But if we can find a way to have such uses in a *.cc file, and then export from the *.so only functions using it behind the scenes, it would still make sense...
Paolo.
Attachment:
messages_members.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |