Integral type with sizeof(T) == 1 and distinct aliasing class

Ian Lance Taylor iant@google.com
Mon May 21 04:06:00 GMT 2012


Florian Weimer <fw@deneb.enyo.de> writes:

> Is there a type which is basically an (unsigned) char, but with the
> additional feature that a pointer derived from it wouldn't alias with
> basically anything?
>
> This type would be handy for optimizing marshaling code.

There is no such type.  However, use of the restrict qualifier should
achieve a similar effect.

Ian



More information about the Gcc-help mailing list