comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: How to get generic formal parameter type into base class
Date: Fri, 12 Oct 2012 01:28:31 +0200
Date: 2012-10-12T01:28:32+02:00	[thread overview]
Message-ID: <50775620$0$6560$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <b57d53cc-32c9-4c88-a53a-99494f5409fc@m4g2000yqf.googlegroups.com>

On 11.10.12 22:25, kevin andrew wrote:
>
> Thanks Adam,
> Your solution is the workaround I had used. Ada is so strongly type
> cast I didn't think I would be able to do what I wanted.
> FYI, you can do this with C++ template classes,

You can't, really. It hinges on char and int matching. Try this:

struct T {};

int main()
{
    newClass<int> intClass;
    newClass<T> charClass;
  ...
}





  reply	other threads:[~2012-10-16  1:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05 22:23 How to get generic formal parameter type into base class kevin.miscellaneous
2012-10-05 23:38 ` Georg Bauhaus
2012-10-06  3:28 ` Adam Beneschan
2012-10-06 20:03   ` kevin andrew
2012-10-07  3:06     ` Adam Beneschan
2012-10-11 20:25       ` kevin andrew
2012-10-11 23:28         ` Georg Bauhaus [this message]
2012-10-11 23:52         ` Georg Bauhaus
2012-10-07  7:42     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox