[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Headers and templated classes
From: |
David Sugar |
Subject: |
Re: Headers and templated classes |
Date: |
Thu, 2 Jan 2003 08:26:50 -0500 |
User-agent: |
KMail/1.4.3 |
The reason they were in a seperate directory originally was that they came
about late in the development of Common C++ and so idea of having a Common
C++ template library was new. However, the throught at the time was also
that there were still many C++ compilers in production use that generate
template code poorly or incorrectly, and so I thought it was best to make it
easy to isolate any template classes from the rest of the library if one
simply did not want to make use templates at all or had poor or broken
compilers. Even today, none of the core libccgnu2 classes make use of any
template code, although templates are found in some things in libccext2.
On Tuesday 31 December 2002 16:27, Federico Montesino Pouzols wrote:
> On Mon, Dec 30, 2002 at 10:59:54PM +0200, Albert Strasheim wrote:
> > Hello,
> >
> > A few questions regarding header files and templated classes in cc++.
> >
> > Firstly, what are the p[io]* headers for?
>
> The pios* headers are a contribution by Daniel Baumann that
> implements thread-safe C++ iostreams.
>
> > Secondly, how does one actually use a header in the template directory
> > when building something in the demo directory? You can't exactly
> > #include it in the standard way, unless I am mistaken? Seems you
> > would have to make install cc++ first -- not always convenient.
> >
> > IMHO, the reasons given in the README for keeping the templated and
> > non-templated code seperate are not entirely valid. It is quite common
> > for code that was once "normal" to be extended in future to support
> > templating. Should this code then be moved? I think not.
>
> I think you are right, I do not see any simple way to use the
> templates in demo or tests apps. Probably the reasons why David put
> the templates there are no longer valid and we should move them?
>
> > Cheers,
> >
> > Albert
> >
> >
> > _______________________________________________
> > Bug-commoncpp mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
- Re: Headers and templated classes,
David Sugar <=