Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocARNA uses the removed STL method #82

Open
yurivict opened this issue Dec 14, 2023 · 0 comments
Open

LocARNA uses the removed STL method #82

yurivict opened this issue Dec 14, 2023 · 0 comments

Comments

@yurivict
Copy link

Build fails:

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include/ViennaRNA -pthread -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/catch2 -MT LocARNA/sequence.lo -MD -MP -MF LocARNA/.deps/sequence.Tpo -c LocARNA/sequence.cc  -fPIC -DPIC -o LocARNA/.libs/sequence.o
LocARNA/scoring.cc:57:29: error: no member named 'bind2nd' in namespace 'std'
                       std::bind2nd(std::minus<score_t>(), x));
                       ~~~~~^
LocARNA/scoring.cc:61:26: error: no member named 'bind2nd' in namespace 'std'
        m.transform(std::bind2nd(std::minus<score_t>(), x));
                    ~~~~~^
2 errors generated.

According to the docs std::bind2nd was removed in C++17.

Compilers that default to C++17 or C++20 fail to compile such code.

Version: 2.0.0
clang-16
FreeBSD 13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant