top | item 30674619

(no title)

steerablesafe | 4 years ago

> is it even legal to memcpy more than a T's worth of data into a T? (IMO you shouldn't be doing that, but I think it's legal in C, and not with my template trick.)

How can you know if it's a single `T` or an array of `T` objects? You can memcpy into an array of `T` through a `T*` with no limitation on the size. I don't see anything inherently wrong with that either.

discuss

order

nyanpasu64|4 years ago

Oh, forgot about that case.