From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>
To: egcs@cygnus.com
Subject: [egcs-971114] invalid member template declaration ?
Date: Sun, 30 Nov 1997 08:38:00 -0000 [thread overview]
Message-ID: <199711301629.RAA16372@piano.dptmaths.ens-cachan.fr> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
Hi all !
Consider :
% cat toto.C
template<class T> class allocator;
template<> class allocator<void> {
public:
typedef void* pointer;
typedef const void* const_pointer;
typedef void value_type;
template <class U>
struct rebind { typedef allocator<U> other; };
};
% g++ -c toto.C
toto.C:9: invalid member template declaration
% g++ --version; uname -a
egcs-2.90.17 971114 (gcc2-970802 experimental)
SunOS piano 5.5 Generic_103093-14 sun4m sparc SUNW,SPARCstation-20
What am I missing about this diagnostic ? I recall this
fraction of code is that in CD2 regarding specialization for allocator.
-- gaby
Gabriel Dos Reis | Ãcole Normale Supérieure de Cachan
INRIA, Unité de Recherche de | Centre de Mathématiques et de Leurs
Sophia Antipolis | Applications
Projet SAFIR | Ãquipe de Géométrie
next reply other threads:[~1997-11-30 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-30 8:38 Gabriel Dos Reis [this message]
1997-11-30 12:42 ` Mark Mitchell
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=199711301629.RAA16372@piano.dptmaths.ens-cachan.fr \
--to=gabriel.dos-reis@dptmaths.ens-cachan.fr \
--cc=egcs@cygnus.com \
/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).