This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: a bit of rearranging?
On Thu, May 16, 2002 at 12:40:32PM -0700, Benjamin Kosnik wrote:
>
> > While you're doing that, is there anything to stop you from moving the
> > non-inline function definitions into a separate .tcc file in
> > anticipation of some future implementation of the export keyword, or
> > is that a bad idea?
>
> Good idea! It would also match string, io, and locales.
That was the original reason for .tcc files' existence. Of course
the HP/SGI headers never had that, but IIRC they were *all* declared
inline back then anyhow.
Of course changing an interface from non-inline to inline breaks the
library ABI, so we have to be careful now. Probably we should have
made a lot of stuff non-inline before the ABI freeze, to reserve some
freedom for bug fixing and optimization, but c'est la vie.
Nathan Myers
ncm at cantrip dot org