🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
3 messages
3 total messages Started by Tom Stiemerling Wed, 11 Nov 1992 14:23
gen classes and templates
#321
Author: Tom Stiemerling
Date: Wed, 11 Nov 1992 14:23
6 lines
754 bytes
Now that g++-2.X supports templates, it seems that the genclass stuff is
redundant (in that it tries to do the same thing outside the compiler).
Is there any move to convert the gen libraries into template form?
How difficult would it be to do? Is anyone currently doing it?

Thanks, Tom
Re: gen classes and templates
#324
Author: bothner
Date: Thu, 12 Nov 1992 08:52
16 lines
969 bytes
> Is there any move to convert the gen libraries into template form?

Yes.  Someone was going to be working on it; I don't know
how far he's gotten.  libg++-2.3 will have SLList and DLList converted.

> How difficult would it be to do?

Non-trivial if you want to do it in an efficient way (minimize code
duplication).

> Is anyone currently doing it?

It is not high on my list of things to do, but it definitely needs to be done.

	--Per Bothner
Cygnus Support     bothner@cygnus.com
gen classes and templates
#326
Author: Jeff Greif
Date: Thu, 12 Nov 1992 19:37
23 lines
1655 bytes
>>>> Tom Stiemerling <trs@cs.city.ac.uk> writes:
  Tom> Resent-Date: Wed, 11 Nov 92 14:23:56 GMT
  Tom> Resent-From: bug-lib-g++-request@prep.ai.mit.edu

  Tom> Now that g++-2.X supports templates, it seems that the genclass stuff is
  Tom> redundant (in that it tries to do the same thing outside the compiler).
  Tom> Is there any move to convert the gen libraries into template form?
  Tom> How difficult would it be to do? Is anyone currently doing it?

Please don't ditch the genclass stuff from libg++.  Some people would like
to use lib-g++ reuseable classes in environments (e.g. Microsoft C7.0) where
templates aren't supported.  It is much easier to port e.g. the collection
classes of libg++ and the genclass stuff to a strange environment like
Windows than to deal with missing templates in the library.  I would
recommend keeping the existing stuff and perhaps providing an alternate
that used templates.  

Also, given the volume of bug reports mentioning templates for gcc-2.3.1
and 2.2.2, it seems premature to expect them to easily support everything
that would appear in a template-ized libg++.

Thanks.
Jeff
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads