shuffle function clashed with g++ 5 standard library
raditya1710 opened this issue · 0 comments
raditya1710 commented
In the shuffle function provided here, it only uses 2 arguments. But I'm using gcc version 5.4.0 20160609
, and this error happened:
/usr/include/c++/5/bits/stl_algo.h:3717:5: note: candidate: template<class _RAIter, class _UGenerator> void std::shuffle(_RAIter, _RAIter, _UGenerator&&)
shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:3717:5: note: template argument deduction/substitution failed:
In file included from /home/radit/tcframe/src/tcframe/runner.cpp:3:0:
.../spec.cpp:213:31: note: candidate expects 3 arguments, 2 provided.