oink icon indicating copy to clipboard operation
oink copied to clipboard

Use of deprecated C++ feature std::random_shuffle

Open yurivict opened this issue 1 year ago • 0 comments

Here.

You don't set the C++ standard level, so when the compiler defaults to C++20, the compilation fails:

/wrkdirs/usr/ports/math/oink/work/oink-3327c54/test/test_solvers.cpp:250:19: error: no member named 'random_shuffle' in namespace 'std'
        else std::random_shuffle(files.begin(), files.end());
             ~~~~~^

You should either explicitly use older than c++17 level, or replace deprecated features with available alternatives.

clang-16 FreeBSD 13.2

yurivict avatar Jul 14 '23 22:07 yurivict