On Wednesday, 9 December 2015 at 13:13:36 UTC, BBaz wrote:
3) opEquals can be 'const' because the method doesn't mutate the state of the object4) your cast wasn't safehttp://dlang.org/phobos/std_algorithm_mutation.html#.remove
Maybe something like this works better:
...
override bool opEquals(T)(T obj) const
if (is(T : A))
{
return (s == o.s) && (u == o.u);
}
...
