 
             //auto func = std::bind(measureLatency, q, buffer, t, settings, &barrier);
             //threads[i] = thread(func);
-            threads[i] = thread([&q, &buffer, &t, &settings, &barrier]() {
+            threads[i] = thread([q, buffer, t, settings, &barrier]() {
                 measureLatency(q, buffer, t, settings, &barrier);
             });
         }

            Times* t = &times[i];
            QueuePtr q = queues[i];

            threads[i] = thread([&q, &buffer, &t, &settings, &barrier]() {
                measureBandwidth(q, buffer, t, settings, &barrier);
            });
        }


    avgBw /= times.size();

    fprintf(stderr, "Queue #%02u cmds=%zu blocks=%zu count=%zu ",
            queue->no, queue->transfers.size(), blocks, times.size());
    fprintf(stderr, "min=%.3f avg=%.3f max=%.3f\n", minBw, avgBw, maxBw);

