Fatal error compiling with gcc-7
Compilation fails with the following fatal error:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -DSPDLOG_ENABLE_SYSLOG -pthread -I/usr/include -I../../include -I../../src -I../../src/resources -I../../rpc -I../rpc -std=gnu++11 -Wall -Wextra -fdevirtualize -g -O2 -std=c++11 -MT io/liburd_aux_la-task-info.lo -MD -MP -MF io/.deps/liburd_aux_la-task-info.Tpo -c ../../src/io/task-info.cpp -o io/liburd_aux_la-task-info.o >/dev/null 2>&1
../../src/io/task-manager.cpp: In lambda function:
../../src/io/task-manager.cpp:150:21: error: 'accumulate' is not a member of 'std'
return std::accumulate(m_bandwidth_backlog.at({nsid1, nsid2}).begin(),
^~~~~~~~~~
The reason is probably due to a missing #include <numeric>
in src/io/task-manager.cpp
.