This is the mail archive of the libstdc++@sourceware.cygnus.com 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: problems with locale.cc


> 
> Perhaps. Could someone who knows the source please tell me where:
> void 
> vector<locale::facet*, allocator<locale::facet*> >::
> insert(vector<locale::facet *, allocator<locale::facet *> >::iterator, 
>            unsigned int, locale::facet* const&);
> 
> is used among the many files, I can investigate further.

what do you mean by "is used?"

It is explicitly instantiated because this vector container is used in
locale. This specific member function may not be referenced, but it's
easier to do explicit instantiations on the class as a whole then to
instantiate just the required member functions. For examples of syntax for
both approaches, see the various /src/*inst* files. 

Eventually, the plan is to move to "meta instantiations" of whole classes
instead of piecemeal instantiations of specific members, and use
--function-sections and -fvtable-gc to reduce/eliminate un-unsed methods.
I will write up docs on this approach when I have time to work out all the
bugs. (Although this approach will only work on select ELF targets at the
moment.) 

Hopefully, you've now gotten the library to compile--can you link the test
programs in /testsuite/* with both static and shared compiles? 

-Benjamin



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