Comment #0 by ilyayaroshenko — 2016-10-16T10:34:55Z
Making toHash method a template can significantly reduce template bloat for ndslices.
In the same time language DMD FE does not allow to do it because, for example, the following toHash declaration is not recognised as toHash method:
struct S
{
uint s;
size_t toHash()() { return s; } // does not work :-(
}
Comment #1 by robert.schadek — 2024-12-13T18:50:27Z