
Boost : 
From: Jason Hise (chaos_at_[hidden])
Date: 20050128 10:47:21
Sérgio Vale e Pace wrote:
>not exactlly, sometimes you get the 1 difference correctly so, you
>will introduce an error for such cases, and on some compillers (bcc)
>for some cases you get an error because it don´t know which version to
>instantiate Sqrt<N,X,XP1,XP1> or Sqrt<N,X,X,XP1>
>
>
XP1 should never be equal to X, so how could there be an ambiguity
between the instantiations? Also, even when the difference of 1 is
arrived at correctly, isn't it reasonable to assume that the lesser of
the two numbers is the floor of the square root?
Jason
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk