Skip to content

Compilation error in future.hpp using LLVM upstream clang #402

@thevinster

Description

@thevinster

After this patch in upstream LLVM, this line in future.hpp

that_=x.that;

fails to compile with the following error

boost/boost/thread/future.hpp:4672:19: error: no member named 'that' in 'run_it<FutureExecutorContinuationSharedState>'; did you mean 'that_'?
 4672 |           that_=x.that;
      |                   ^
boost/boost/thread/future.hpp:4650:55: note: 'that_' declared here
 4650 |     shared_ptr<FutureExecutorContinuationSharedState> that_;
      |                                                       ^

From looking at the error and the code surrounding the error, is this a bug in future.hpp where the code should be using x.that_ given other nearby uses of x.that_?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions