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]

Re: Porting Questions



> | Can't help you there, unfortunately.  After the discussion involving
> | definitions, specializations, instantiations, and AIX freaky-weirdness,
> | my understanding of templates has regressed.  I don't think I understand
> | them anymore.  :-)
> 
> It is basically a non friendly linker issue.  But the discussion was
> confused because of some misunderstanding about C++ notions.

Could you please clear up my misunderstanding, then?
Just saying "it's a linker issue" does not help me.
AFAIK, if specializations exist, those specializations
should be used when the template is explicitly instantiated
as long as they are visible to the compiler.  In the case
of libstdc++ locales, they are not visible and the wrong
code (i.e. the non-specialized version) gets instantiated.

How can the linker resolve that?

-Dave



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]