How to workaround on this (bug?)

frame frame86 at
Fri Sep 16 22:43:43 UTC 2022

import std.variant;

// error: destructor `std.variant.VariantN!32LU.VariantN.~this` 
is not `nothrow`
void fun(Variant v) nothrow


void main()

A reference, pointer or slice works. I could do something on the 
caller site but the signature of `fun()` should remain like above.

More information about the Digitalmars-d-learn mailing list