Sebastiani, I know it's good to do what you do if you're programming in Lisp (to make a function become iterative), but is there any purpose with doing that in this case?
Type: Posts; User: TriKri
Sebastiani, I know it's good to do what you do if you're programming in Lisp (to make a function become iterative), but is there any purpose with doing that in this case?
Thanks anon, it was right as you said; you need to have special template for when n=0. Maybe g++ optimized it in my case with LOG_B; I think it instantiated the template (hence I got the error...
Hi, I have a struct POW which calculates the power of a number in compiletime, and it looked like this before:
template<uint64 b, uint n>
struct POW {
private:
STATIC_ASSERT(b <= 1 ||...