This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] speedup numpunct cache a bit
On Sat, Jun 28, 2003 at 12:17:18AM -0400, Jerry Quinn wrote:
> Nathan Myers writes:
> > On Fri, Jun 27, 2003 at 10:38:02PM -0400, Jerry Quinn wrote:
> > > This moves the code for __use_cache<numpunct> to locale_facets.tcc.
> >
> > Making it inline is a wondrous thing, but all inlines must go in
> > ".h" files. Everything in a .tcc file is supposed to be able to
> > be declared "export" and not need to be seen at instantiation time,
> > meaning (mainly) no public class declarations and no inlines.
>
> <novice> How does export work? </novice>
It doesn't, yet.
'export' represents the One Great Failure[tm] of the committee, in that they
standardized something with no existing implementations for experience.
Five years later, two groups are just now putting the finishing touches
on their initial implementation. GCC will /probably/ make use of the PCH
code to help make 'export' work, but who knows.
> > This might not have been explained anywhere that you would have
> > been likely to encounter.
>
> No problem. Is there a place in the docs or guidelines that this
> tidbit should go?
No idea. I don't even see it explained in textbooks.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams