#include "sale.h" #include int Sale::sumInCents() { int test = std::accumulate(articles_.begin(), articles_.end(), 0, [](int a, Article* b) { return a + b->getPrice(); }); return test; }