Skip to content

Use of deprecated and removed C++ feature std::bind2nd #789

@yurivict

Description

@yurivict

This feature was removed in C++17: https://en.cppreference.com/w/cpp/utility/functional/bind12.html

In file included from /wrkdirs/usr/ports/graphics/mirtk/work/MIRTK-2.0.0-178-g973ce2f/Modules/Common/src/String.cc:25:
/wrkdirs/usr/ports/graphics/mirtk/work/MIRTK-2.0.0-178-g973ce2f/Modules/Common/include/mirtk/Algorithm.h:54:12: error: no member named 'bind1st' in namespace 'std'
   54 | using std::bind1st;
      |       ~~~~~^
/wrkdirs/usr/ports/graphics/mirtk/work/MIRTK-2.0.0-178-g973ce2f/Modules/Common/include/mirtk/Algorithm.h:55:12: error: no member named 'bind2nd' in namespace 'std'
   55 | using std::bind2nd;
      |       ~~~~~^ 
2 errors generated.

-std=c++17 is added by VTK9-9.5.0

clang-19

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