From 3112570274975580910
X-Google-Thread: f78e5,33c1ffa960d55699
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: hyrosen@mail.com (Hyman Rosen)
Newsgroups: comp.std.c++
Subject: Re: Suggestion: parent
Date: Wed, 11 May 2005 20:59:03 GMT
Lines: 17
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <20050510120102.A34CF780A4@mscan4.ucar.edu>
References: <4280298A.6090305@usq.edu.au> <2NXfe.4884$eU.970@fed1read07>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1115845147 9821 158.152.254.254 (11 May 2005 20:59:07 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 May 2005 20:59:07 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j4BKx3oX028868;
	Thu, 12 May 2005 06:59:03 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:4700

James Dennett wrote:
> In the past the idea hasn't had all that much support, given that
> it's not hard to add a typedef manually and that generalizations to
> multiple inheritance are either restricted or complicated.

It's the MI case where this is most useful, but complicated template
base classes could use the help as well. I don't see anything all that
difficult - simply let inherited<N> be the (N+1)th direct base class,
and let inherited::name be the name found by lookup as if name were not
defined in the derived class.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



