Search:

Type: Posts; User: TriKri

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,863

    Sebastiani, I know it's good to do what you do if...

    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?
  2. Replies
    5
    Views
    3,863

    Thanks anon, it was right as you said; you need...

    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...
  3. Replies
    5
    Views
    3,863

    template metaprogramming problem

    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 ||...
Results 1 to 3 of 3