Compile time maths/square root?

Does boost have a library of compile time maths functions? I've only been able to find GCD and LCM algorithms (boost/math/common_factor.hpp) If such a library exists, it would be worth adding a summary of them to /libs/math/doc/html/index.html In paticular, I was looking for a compile time integer square root function.

Joseph Gauterin wrote:
Does boost have a library of compile time maths functions? I've only been able to find GCD and LCM algorithms (boost/math/common_factor.hpp) If such a library exists, it would be worth adding a summary of them to /libs/math/doc/html/index.html
We don't have anything official for that.
In paticular, I was looking for a compile time integer square root function.
There was a start made on a "meta" maths library in the Vault: http://www.boostpro.com/vault/index.php?PHPSESSID=a8e7926b41bab908da59cd1b0297a8f4&direction=0&order=&directory=Template%20Metaprogramming which covers this kind of ground I think - not sure about integer sqrt though. HTH, John.
participants (2)
-
John Maddock
-
Joseph Gauterin