]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
PR77994 Convert std::sample size argument to suitable type
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Oct 2016 14:39:23 +0000 (15:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 17 Oct 2016 14:39:23 +0000 (15:39 +0100)
commit12d3f34b33bc41f5f3d010435fa7eb03fb344c5f
treecc81988e0f78640dac228a761d506e38dc166b87
parent44b00dbca0929cbed83b1f326b5f96e3d0bc3f2d
PR77994 Convert std::sample size argument to suitable type

PR libstdc++/77994
* include/bits/stl_algo.h (sample): Convert size argument to iterator
difference type.
* include/experimental/algorithm (experimental::sample): Likewise.
* testsuite/25_algorithms/sample/2.cc: New test.

From-SVN: r241245
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/testsuite/25_algorithms/sample/2.cc [new file with mode: 0644]