3 ms·
Why do you need to pass the type to vec_push? Can't T be replaced by typeof(v->data[0]) ?
by teo_zero 1y ago
Why do you need to pass the type to vec_push? Can't T be replaced by typeof(v->data[0]) ?
- uecker 1y agoIt could. I like things being spelled out explicitly. Otherwise I would probably not use C.