ccia_code_samples icon indicating copy to clipboard operation
ccia_code_samples copied to clipboard

Listing 8.2 - Compiler error (missing headers)

Open ITHelpDec opened this issue 1 year ago • 0 comments

Not sure what compiler this code was tested on, but we need the following headers to allow our example to compile.

#include <numeric>    // std::accumulate
#include <functional> // std::mem_fn

Godbolt

Before: gcc | clang After: gcc | clang

ITHelpDec avatar Jun 15 '23 19:06 ITHelpDec