From: Eljay Love-Jensen <eljay@adobe.com>
To: Michael Kaes <michael.kaes@gmail.com>, GCC-help <gcc-help@gcc.gnu.org>
Subject: Re: Template type usage from base classes
Date: Tue, 19 Aug 2008 16:17:00 -0000 [thread overview]
Message-ID: <C4D05BF1.7E9C%eljay@adobe.com> (raw)
In-Reply-To: <9c1eb01c0808190834p147266b8w2ae6224ee49689b9@mail.gmail.com>
Hi Michael,
Try this...
template<
size_t sizeValue
>
class Derived<sizeValue, int> : public Base<sizeValue, int>
{
public:
Derived() : Base<sizeValue, typename Base<sizeValue, int>::val_t>(1)
{
}
};
Microsoft's compiler is in error, it should not accept your non-compliant
code.
HTH,
--Eljay
next prev parent reply other threads:[~2008-08-19 16:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 15:37 Michael Kaes
2008-08-19 16:17 ` Eljay Love-Jensen [this message]
2008-08-19 16:17 ` Gian Lorenzo Meocci
2008-08-19 16:57 ` Michael Kaes
2008-08-19 23:54 ` Tom Browder
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=C4D05BF1.7E9C%eljay@adobe.com \
--to=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
--cc=michael.kaes@gmail.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).