Expression templates

David L. Davis SpottedTiger at yahoo.com
Tue Dec 12 10:40:41 PST 2006


Don thanks for sharing!

But using dmd v0.177 on WinXP SP2, and compiling the POC sample
with the following commandline: C:\dmd>dmd expression_templates.d

I get a compile error for this line: "b = a + c;" (and the other
two lines that follow if I comment out the previous line).

Output:
--------
C:\dmd>dmd expression_templates.d
expression_templates.d(123): Error: cannot implicitly convert
expression (((a).o
pAdd)((c))) of type Expr!('+',DVec,DVec) to
expression_templates.DVec

C:\dmd>
--------

Is there something I not doing correctly?

David L.



More information about the Digitalmars-d mailing list