4 ms·
from what I can see sizeof(std::variant<char, uint8_t>) == 2 so there is no padding between the values and the discriminant
by jcelerier 9y ago
from what I can see
sizeof(std::variant<char, uint8_t>) == 2
so there is no padding between the values and the discriminant
- steveklabnik 9y agoIn this specific case, yes.