C
Carter
Hi,
I am a bit new when it comes to C++ and I wasnt sure how to go about
doing this. How does one compute values at compile which can be
plugged into a static const value using a template. I remember seeing
in a book I no longer have some method for doing this. For example the
book gives a method for computing at compile time the value of
Fibonacci sequence where the value is generated by the compiler.
Unfortunately I seem to have misplaced the book.
Thanks in advance,
Carter.
I am a bit new when it comes to C++ and I wasnt sure how to go about
doing this. How does one compute values at compile which can be
plugged into a static const value using a template. I remember seeing
in a book I no longer have some method for doing this. For example the
book gives a method for computing at compile time the value of
Fibonacci sequence where the value is generated by the compiler.
Unfortunately I seem to have misplaced the book.
Thanks in advance,
Carter.