struct-member-alignment Questions
2
Solved
Given the following c language struct definition:
typedef struct PackTest {
long long a;
int b;
int c;
} PackTest;
Clang-Tidy gives the following message:
Accessing fields in struct 'PackTest'...
Ehtelehud asked 27/10, 2020 at 3:8
0
Suppose I have the following simple class:
struct employee{
std::string name;
short salary;
std::size_t age;
employee(std::string name, short salary, std::size_t age) : name{name}, salary{sal...
Oddson asked 11/6, 2020 at 5:53
7
Solved
[Not a duplicate of Structure padding and packing. That question is about how and when padding occurs. This one is about how to deal with it.]
I have just realized how much memory is wasted as a re...
Kaitlin asked 25/6, 2019 at 20:29
1
© 2022 - 2024 — McMap. All rights reserved.