Strange Error using parameterized opAssign for a struct
d coder
dlang.coder at gmail.com
Mon Jul 4 23:44:22 PDT 2011
Greetings Robert/All
Robert suggested that I put my opAssign method as:
void opAssign (T:Foo!NN,size_t NN)(T f) { }
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.
void opAssign (T)(T f) if(is(T .......)) { }
Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110705/143fa59b/attachment.html>
More information about the Digitalmars-d
mailing list