This yet another C++11 fix, fixing clang warning: Result: WARN Found the following significant warnings: znorm.cpp:44:59: warning: 'bind2nd<std::__1::minus, double>' is deprecated [-Wdeprecated-declarations]
The old code: std::transform(ts.begin(), ts.end(), diff.begin(), std::bind2nd(std::minus(), mean));
The new code: for(unsigned i=0; i<ts.size(); i++) diff[i] = ts[i]-mean;
All over source code in order to fix any thrown warnings.
- Ubuntu LTS 19.10 (localhost), R 3.6.1
- Ubuntu LTS 16.04 (on travis-ci), R 3.5
- win-builder (devel and release)
There were no ERRORs or WARNINGs
stats::as.dist