warning: padding size of 'model' with 4 bytes to alignment boundary
Unsolved
General and Desktop
-
wrote on 28 Aug 2019, 03:46 last edited by
warning: padding size of 'model' with 4 bytes to alignment boundary
What does that mean
-
@canid said in warning: padding size of 'model' with 4 bytes to alignment boundary:
with 4 bytes to alignment boundary
The compiler is telling you, that for reasons (can't say why exactly without seeing the class), he assigns additional 4 bytes of memory that will stay unused, when an instance of your class is created.
Useful and needed information if you do low level operations on the class object- e.g direct memory access, or if you want to reduce memory consumption of your application
1/2