This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/78991] std::sort and std::unique can not use std::function with clang++ -std=c++14


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78991

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jan  6 13:20:05 2017
New Revision: 244152

URL: https://gcc.gnu.org/viewcvs?rev=244152&root=gcc&view=rev
Log:
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.
        * testsuite/25_algorithms/sort/78991.cc: New test.

Added:
    branches/gcc-6-branch/libstdc++-v3/testsuite/25_algorithms/sort/78991.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/predefined_ops.h

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]