<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
So is everyone on board for this? If not, please say something.
Otherwise I'll make the changes.<br>
<br>
On 7/13/2010 6:12 PM, David Simcha wrote:
<blockquote
cite="mid:AANLkTimQpZ-pQnqNLZV81k4JNPjBpcUVYphGPnvV2Ibp@mail.gmail.com"
type="cite">This is probably the way to go, though I really wish the
bug that prevents overloading functions against templates would get
fixed so it wouldn't mean that the floating point case would have to be
templated, too.<br>
<br>
<div class="gmail_quote">On Tue, Jul 13, 2010 at 5:48 PM, Andrei
Alexandrescu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:andrei@erdani.com">andrei@erdani.com</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 07/13/2010 04:46 PM, Don Clugston wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 13 July 2010 23:25, David Simcha<<a moz-do-not-send="true"
href="mailto:dsimcha@gmail.com" target="_blank">dsimcha@gmail.com</a>>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What's wrong w/ adding sqrt(long) and sqrt(ulong) overloads that just<br>
forward to sqrt(real)?<br>
</blockquote>
<br>
Doesn't work -- it's ambiguous for ints.<br>
You need an explicit specialisation for every type: byte, ubyte,<br>
short, ushort, int, uint, long, ulong.<br>
Yuck.<br>
</blockquote>
<br>
</div>
Or templates that dispatch using constraints.<br>
<font color="#888888"><br>
Andrei</font>
<div>
<div class="h5"><br>
_______________________________________________<br>
phobos mailing list<br>
<a moz-do-not-send="true" href="mailto:phobos@puremagic.com"
target="_blank">phobos@puremagic.com</a><br>
<a moz-do-not-send="true"
href="http://lists.puremagic.com/mailman/listinfo/phobos"
target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>