Hello,
I know that run time assert is available. I'd like to have compile time assert(s). Are those possible ? if yes, an example would be more than welcome.
In particular, I'd like to assert at compile time that the size of some custom types is as expected, e.g, assert(sizeof(<sometypename>) = 16), presuming the expected size in this example is 16. If the assert fails (the size is not 16) then stop the compilation with a fatal error message.
Thank you for your help.