Nice surprise with C++11
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jul 31 12:56:45 UTC 2015
On 31/07/15 14:51, Daniel Gutson wrote:
>
> > Is it possible to construct objects without an address via plain C++?
>
> Sorry I don't understand the question. Rephrase please?
>
> Global objects and objects of static storage duration don't take an
> address.
>
This register asm variable has no address, since this is a real
register. This, however, is not a problem:
int *h(void)
{
register int i;
return &i;
}
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list