Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions changelog/variant_disabled_this.dd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variant: Support big structs with @disabled this()
variant: Support big structs with `@disable this()`

std.variant didn't compile when the payload was a struct that was bigger than
its internal buffer and had to be allocated on the heap if that struct
`@disabled this()`. The new handling now always skips the constructor and just
copies the directly to the allocated regions.
its internal buffer, had to be allocated on the heap, and had `@disable this()`.
The new handling now always skips the constructor and just copies the payload
directly to the allocated region.
Loading