wiseio / paratext

A library for reading text files over multiple cores.
Apache License 2.0
1.06k stars 103 forks source link

C++11 compiler warning with clang on OS X #69

Open tdenniston opened 6 years ago

tdenniston commented 6 years ago

Hello,

On OS X 10.11.6, with clang version:

Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0

I'm seeing a warning that a C++14 feature is being used. The README states that only a C++ compliant compiler is required --- is C++14 required? Here is the warning:

In file included from paratext/src/csv/colbased_loader.hpp:36:
paratext/src/csv/parallel.hpp:67:46: warning: initialized lambda captures are a C++14
      extension [-Wc++14-extensions]
        .emplace_back([ it, step, thread_id, f = std::forward<F>(f) ]() {
                                             ^

We're constrained to C++11, so it'd be great if there was a workaround for this (other than suppressing the warning).

This warning also appears in the Travis build output: https://travis-ci.org/wiseio/paratext/jobs/313212429#L1380