PR78991 make __gnu_cxx::__ops constructors explicit
authorJonathan Wakely <jwakely@redhat.com>
Fri, 6 Jan 2017 12:33:58 +0000 (12:33 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 6 Jan 2017 12:33:58 +0000 (12:33 +0000)
commit6807f0862833c893bdcdc6838e9303761d93929a
tree4899a4955e6f61ccc394d28a15aeb1e9f5b82533
parent88456bc19d4362b60fbe8e37f59d70a09675098f
PR78991 make __gnu_cxx::__ops constructors explicit

PR libstdc++/78991
* include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
(_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
(_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
move function objects.
(__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
(__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
* testsuite/25_algorithms/sort/78991.cc: New test.

From-SVN: r244150
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/predefined_ops.h
libstdc++-v3/testsuite/25_algorithms/sort/78991.cc [new file with mode: 0644]