Skip to content

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

@tdenniston

Description

@tdenniston

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions