]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport fixes to std::experimental::sample
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Oct 2016 17:03:09 +0000 (18:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 17 Oct 2016 17:03:09 +0000 (18:03 +0100)
commitd73e8794f69c28329738adc7c8c8e1172fdabdf2
tree2bfeb1d5fdc23ef430f28921b63d654ad294e6bc
parent8be5dcae3e7191676b4092acbcc40d178936bbbe
Backport fixes to std::experimental::sample

PR libstdc++/77994
* include/experimental/algorithm (experimental::sample): Convert size
argument to iterator difference type. Fix invalid use of input
iterator. Defend against overloaded comma operator.

From-SVN: r241263
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/testsuite/experimental/algorithm/sample.cc