<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 22:16, Simen kjaeraas <span dir="ltr"><<a href="mailto:simen.kjaras@gmail.com">simen.kjaras@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Philippe Sigaud <<a href="mailto:philippe.sigaud@gmail.com" target="_blank">philippe.sigaud@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
And, looking in my codebase, here is what I'm using ;)<br>
<br>
template Init(T...)<br>
{<br>
T Init;<br>
}<br>
</blockquote>
<br></div>
Doh. I believe this is slightly better, though:<br>
<br>
template Init( T... ) {<br>
enum T Init;<br>
}<br>
<br>
:p<br></blockquote><div><br>What, that's *five* more characters, five! I win, I win!<br><br>More seriously, yours might be more 'solid', but isn't enum implicit in this case?<br><br>Anyway, T.init should exist, since "T Init;" works...<br>
<br>Philippe<br><br></div></div>