Skip to content

Why do T and U must have the same alignment in try_cast_box? #62

Answered by Lokathor
gymore-io asked this question in Q&A
Discussion options

You must be logged in to vote

When the Box drops it will de-allocate. The requirements of the de-allocation is that it's de-allocated with the same size and alignment as was used to make the allocation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gymore-io
Comment options

Answer selected by Lokathor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants