Re: typedefs and structs

From: Bernd Petrovitsch
Date: Wed Nov 09 2005 - 17:02:08 EST


On Wed, 2005-11-09 at 22:53 +0100, Andreas Schwab wrote:
> thockin@xxxxxxxxxx writes:
>
> > Sigh, That's funny - I've written C++ code which has references as members
> > of objects. You absolutely *can* store a reference.
>
> You can _initialize_, but not _modify_ (reseat) it.
reset?
As in:
---- snip ----
struct x {
struct y * const p;
};
---- snip ----

We assume that no one casts the "const" away.

Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/