ccia_code_samples
ccia_code_samples copied to clipboard
Listing 8.11 - Compile Error
Two changes are needed to get this code to compile:
- Change line 60 from
return last
to return (this is avoid
function, we our not returning an_OutputIterator
- Make
addend
a constant reference at line 27
One further change required to stop the code from crashing at runtime.
- Complete the
join_threads
class