<br>template T(){<br>  enum a = pow(3.0, 2);<br>  enum b = pow(3, 2.0);<br>}<br><br>unittest<br>{<br>  alias T!() t;<br>}<br><br>compiling that I get:<br><br>/home/b/phobos/std/math.d(2369): Error: Cannot convert &real to ushort* at compile time<br>
/home/b/phobos/std/math.d(3292):        called from here: isNaN(y)<br>/home/b/phobos/std/math.d(3403):        called from here: impl(x,cast(real)y)<br>/home/b/phobos/std/math.d(3239):        called from here: pow(cast(real)x,y)<br>
t.d(478):        called from here: pow(3,2)<br>t.d(485): Error: template instance units.T!() error instantiating<br><br>I guess this a bug?  any workarounds?<br><br>