Re: typedefs and structs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-11-09 at 22:53 +0100, Andreas Schwab wrote:
> [email protected] 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux