[Issue 6560] Exponentiation operator ^^ doesn't work for complex numbers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 26 17:41:42 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6560



--- Comment #2 from bdsatish at gmail.com 2011-08-26 17:41:40 PDT ---
(In reply to comment #1)

> https://github.com/D-Programming-Language/phobos/blob/master/std/complex.d#L324
> 
I'm using DMD v2.051 on Ubuntu 11.04, the following isn't compiling:

import std.stdio;
import std.complex;

void main()
{
    writeln((1+3i)^^(4+6i));
}

Error message is:

complexes.d(6): Error: template std.math.pow(F,G) if (isFloatingPoint!(F) &&
isIntegral!(G)) does not match any function template declaration
complexes.d(6): Error: template std.math.pow(F,G) if (isFloatingPoint!(F) &&
isIntegral!(G)) cannot deduce template function from argument types
!()(cdouble,cdouble)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list