3 ms·
> Then you could easily get creature comforts such as: > typedef uint8_t[16] guid_t; > typedef uint8_t[20] sha1_digest_t; > These typedefs would then
by ssalazar 10y ago
> Then you could easily get creature comforts such as:
> typedef uint8_t[16] guid_t;
> typedef uint8_t[20] sha1_digest_t;
> These typedefs would then have copy assignment, pass-by-value semantics and everything else you'd expect from value types.
What does this accomplish that a struct can't?