             Times* t = &times[i];
             QueuePtr q = queues[i];
 
-            threads[i] = thread([&q, &buffer, &t, &settings, &barrier]() {
+            threads[i] = thread([q, buffer, t, settings, &barrier]() {
                 measureBandwidth(q, buffer, t, settings, &barrier);
             });
         }

    avgLat /= times.size();


    fprintf(stderr, "Queue #%02u cmds=%zu blocks=%zu repeat=%zu ",
            queue->no, queue->transfers.size(), blocks, times.size());
    fprintf(stderr, "min=%.3f avg=%.3f max=%.3f\n", minLat, avgLat, maxLat);



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