VS
Size: a a a
VS
VS
struct BmpHeader {
char bitmapSignatureBytes[2] = {'B', 'M'};
uint32_t sizeOfBitmapFile;
uint32_t reservedBytes = 0;
uint32_t pixelDataOffset = 54;
BmpHeader(uint32_t sizeBitmap) : sizeOfBitmapFile(sizeBitmap) {}
} bmpHeader(sizeBitmap);
тогда я не вижу иных путей, кроме конструктора, если designated initializers недоступныAB
MA
AB
AB
VS
/
ПК
AU
/
/
ПК
ПК
/
MA
ПК
add_execuatable
, а add_my_custom_executable
будетT
list(APPEND MY_LINK_OPTIONS
...
)
target_link_options(... ${MY_LINK_OPTIONS})
AB