diff --git a/benchmarks/linux-perf-events.h b/benchmarks/linux-perf-events.h index 0a9e553..99e4ef1 100644 --- a/benchmarks/linux-perf-events.h +++ b/benchmarks/linux-perf-events.h @@ -10,7 +10,7 @@ #include // for memset #include -#include +#include #include template class LinuxEvents { @@ -22,7 +22,7 @@ template class LinuxEvents { std::vector ids{}; public: - explicit LinuxEvents(std::vector config_vec) : fd(0), working(true) { + explicit LinuxEvents(std::array config_vec) : fd(0), working(true) { memset(&attribs, 0, sizeof(attribs)); attribs.type = TYPE; attribs.size = sizeof(attribs);