On Mon, Jul 26, 2010 at 00:00, Mafi
<mafi@example.org> wrote:
Am 25.07.2010 14:55, schrieb Philippe Sigaud:
OK, I must be tired, I don't know.
While switching from a template struct to a templated class, I got the
following problem:
class A(T)
{
T _t;
this(U)(U u) if (is(U == T))
{
_t = u;
}
}
Probably this case is reduced, but anyways:
Having a template(U) where U must be == T (another template parameter) is complettly useless. Maybe I'm missing something but isn't this equivalent to the above:
class A(T)
{
T _t;
this(T u)
{
_t = u;
}
}