This is the mail archive of the gcc-patches@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]

[v3 PATCH] PR libstdc++/79141


Tested on Linux-x64.

2017-04-02  Ville Voutilainen  <ville.voutilainen@gmail.com>

    PR libstdc++/79141
    * include/bits/stl_pair.h (__wrap_nonesuch): New.
    (operator=(typename conditional<
    __and_<is_copy_assignable<_T1>,
    is_copy_assignable<_T2>>::value,
    const pair&, const __wrap_nonesuch&>::type)): Change __nonesuch
    to __wrap_nonesuch.
    (operator=(typename conditional<
    __not_<__and_<is_copy_assignable<_T1>,
    is_copy_assignable<_T2>>>::value,
    const pair&, const __nonesuch&>::type)): Likewise.
    (operator=(typename conditional<
    __and_<is_move_assignable<_T1>,
    is_move_assignable<_T2>>::value,
    pair&&, __wrap_nonesuch&&>::type)): Likewise.
    * testsuite/20_util/pair/79141.cc: New.

Attachment: 79141.diff
Description: Text document


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