From: "erwan ancel" <erwan.ancel@free.fr>
To: <gcc-help@gcc.gnu.org>
Subject: Re: C++ templates: precisions
Date: Sun, 12 Jan 2003 11:25:00 -0000 [thread overview]
Message-ID: <001701c2ba2d$422ceb90$42bd0b50@brisedorient> (raw)
In-Reply-To: <200301121202.42252.sebastian-huber@web.de>
Yes, you're right. But why is it ??
Does the compiler go further to 'cache' a pre-compilation of the template in
case of class ?
----- Original Message -----
From: "Sebastian Huber" <sebastian-huber@web.de>
To: <gcc-help@gcc.gnu.org>
Sent: Sunday, January 12, 2003 12:02 PM
Subject: Re: C++ templates: precisions
Hello!
On Sunday 12 January 2003 11:25, erwan ancel wrote:
> well, this is my problem:
>
> I would like to make a template class that owns a set of elements that
have
> the type of one of the class parameters. And it doesn't compile...
> example:
>
> #include <set>
> template <class T>
'template<typename T>' may fix your problem.
> class A
> {
> public:
> A();
> B();
> std::set<T> _list;
> };
>
> the compiler's output tells that the type T is not defined... Well, of
> course, but it will be defined when the template will be instanciated. So
> it should be possible...
> Does anybody know a solution to my problem?
next prev parent reply other threads:[~2003-01-12 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-12 9:05 C++ templates erwan ancel
2003-01-12 10:25 ` C++ templates: precisions erwan ancel
2003-01-12 11:05 ` Sebastian Huber
2003-01-12 11:25 ` erwan ancel [this message]
2003-01-12 13:27 ` LLeweLLyn Reese
2003-01-13 9:10 ` C++ templates Fabio Mazzone
2003-01-13 13:22 ` Oliver Kullmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001701c2ba2d$422ceb90$42bd0b50@brisedorient' \
--to=erwan.ancel@free.fr \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).