Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Page 460: In exercise 13-5, the TODO comment for fib_sum refers to the wrong thing. #107
The following example code in exercise 13-5 refers to the wrong thing:
Here is the actual contents of Exercise 12.1:
Perhaps you instead intended to refer to the recursive version of the Fibonacci algorithm, considering that its naive implementation performance is terrible and easily noticed. Or perhaps you are only intending for the summing of the Fibonacci sequence itself to be the source of the performance overhead. The clarity here could be improved.
Also, why are you passing by const reference in the following example code, from that same example code block?:
There doesn't seem to be a point to doing that, although it doesn't really harm anything either in this case.