This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: [v3 PATCH] Implement P0513R0, Poisoning the Hash.


On 14 November 2016 at 00:49, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> On 14 November 2016 at 00:48, Ville Voutilainen
> <ville.voutilainen@gmail.com> wrote:
>> Tested on Linux-x64.
>
>
> Ah, negative tests incomplete, sending a follow-up soon...

Here:

2016-11-13  Ville Voutilainen  <ville.voutilainen@gmail.com>

    Implement P0513R0, Poisoning the Hash.
    * include/bits/functional_hash.h (__poison_hash): New.
    * include/bits/unique_ptr.h
    (hash<unique_ptr<_Tp, _Dp>>): Derive from __poison_hash.
    * include/std/optional (hash<optional<_Tp>>): Likewise.
    * include/std/variant (hash<variant<_Types...>>): Likewise.
    * testsuite/20_util/optional/hash.cc: New.
    * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
    * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Adjust.
    * testsuite/20_util/unique_ptr/hash/1.cc: Add tests for
    poisoned fancy pointer hashes.
    * testsuite/20_util/variant/hash.cc: New.

Attachment: P0513R0_2.diff
Description: Text document


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