Any suggestions on fixing
http://forum.dlang.org/post/[email protected]
I really need `opEquals` in
pure unittest
{
import std.variant : Algebraic;
import std.conv : to;
auto x = Algebraic!(long, double)(5.to!long);
assert(x.hasValue);
auto y = x;
assert(y == x);
}
to be pure. This currently fails as
t_algebraic.d(11,12): Error: pure function
't_algebraic.__unittestL3_1' cannot call impure function
'std.variant.VariantN!(8LU, long,
double).VariantN.opEquals!(VariantN!(8LU, long, double)).opEquals'
Ideas anyone?