Skip to content

C++17 and Boost generates an error for unary_function in external submodule #2583

@joshkellyjak

Description

@joshkellyjak

Reporting here in case anyone encounters this issue in future. In C++ 17 the function std::unary_function was discontinued, there is one line in the boost library of tecio that uses this and causes a compilation error (at least on MacOS). The solution is very simple and this can be resolved by changing the function to std::__unary_function. I have observed this and it has also been encountered by at least one other.

Bug report checklist
Please make sure that you have followed the checklist below, many common problems can be solved by:

Desktop (please complete the following information):

  • OS: MacOS
  • C++ compiler and version: XCode/clang
  • MPI implementation and version:
  • SU2 Version: v8.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions