Porting Questions
David A. Greene
greened@eecs.umich.edu
Thu Jun 28 10:42:00 GMT 2001
> | 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
More information about the Libstdc++
mailing list