<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>Robert suggested that I put my opAssign method as:</div><div class="im"><div>
<br></div><div>void opAssign (T:Foo!NN,size_t NN)(T f) { }</div><div><br></div></div><div>That works. But I want to find out if it is possible to write the opAssign template method with a conditional in the following form. This will help me optimize code better. Kindly suggest what would come in place of ....... below.</div>
<br><div>void opAssign (T)(T f) if(is(T .......)) { }</div></blockquote><div><br></div><div><br></div><div>void opAssign (T)(T f) if(is(T L : Foo!(NN,MM), int NN, int MM)) { }</div><div><br></div><div>I found that the above declaration compiles. But again it compiles with int as parameter type. Fails for size_t.</div>
<div><br></div><div>Any other idea?</div><div><br></div><div>Regards</div><div>- Puneet</div></div>