Threads, vectors and references in C++11 on OS X
I was trying to compile some C++ of the form
std::vector<std::thread> threads;
for (int i = 0; i<num_threads; ++i) {
threads.push_back(std::thread(logisticTest, kmer_lines[i], samples);
}
with function prototype
void logisticTest(Kmer& k, const std::vector<Sample>& samples);
on OS X 10.10 with clang++ - Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)