C++ Logo


Advanced search

I need strict aliasing for simple types

From: Andy <borucki.andrzej_at_[hidden]>
Date: Sun, 19 Sep 2021 20:14:03 +0200
For example, a programmer has to write small tables (<64K) of bytes for zip
or chess program. In future (or depend of efficiency tests) table elems can
change to short or int, or index can change from ushort to int.
Is well not to special defined alises like IndexType and ElemType.
But is problem, if types is not strict and badly in some places is used
other alias.
In C++ is possible strict aliasing ?

Received on 2021-09-19 13:14:19