diff --git a/examples/matrix/main.cpp b/examples/matrix/main.cpp index 2d50c87f5..e990392e9 100644 --- a/examples/matrix/main.cpp +++ b/examples/matrix/main.cpp @@ -252,8 +252,7 @@ template void unused(T &&x) { asm("" ::"m"(x)); } template Vc_ALWAYS_INLINE void benchmark(F &&f) { TimeStampCounter tsc; - auto cycles = tsc.cycles(); - cycles = 0x7fffffff; + decltype(tsc.cycles()) cycles = 0x7fffffff; for (int i = 0; i < 100; ++i) { tsc.start(); for (int j = 0; j < 10; ++j) {