Skip to content

Commit

Permalink
Disallow Vec!T with struct that have a non-trivial destructor (have a…
Browse files Browse the repository at this point in the history
… ~this)
  • Loading branch information
Guillaume Piolat committed Dec 12, 2024
1 parent 6ba0d66 commit 35ef8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dplug/core/vec.d
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ nothrow:

static if (is(T == struct) && hasElaborateDestructor!T)
{
pragma(msg, "WARNING! struct with destructors were never meant to be supported in Vec!T. This will be removed in Dplug v15.");
static assert(false, "struct with destructors cannot go in `Vec!T`. You are welcome to use the `numem` package instead or do otherwise.");
}

public
Expand Down

0 comments on commit 35ef8b3

Please sign in to comment.