Enum member hasNoGCLifetime
enum hasNoGCLifetime(T)
= __traits(compiles, ()
{
import std .conv : emplace;
T b = void;
emplace!T(&b);
destroy(b);
}
);
enum hasNoGCLifetime(T)
= __traits(compiles, ()
{
import std .conv : emplace;
T b = void;
emplace!T(&b);
destroy(b);
}
);