[test-map] Don't insert null smart-pointers in map
Dereferencing them is not supported anymore after
3aad7c2ddf
We don't support that for regular pointers, so don't supporting
them for smart-pointers sounds right to me.
This commit is contained in:
parent
896377463f
commit
fc22d706fe
|
@ -188,11 +188,9 @@ main (int argc, char **argv)
|
|||
}
|
||||
|
||||
/* Test hb::shared_ptr. */
|
||||
hb_hash (hb::shared_ptr<hb_set_t> ());
|
||||
{
|
||||
hb_hashmap_t<hb::shared_ptr<hb_set_t>, hb::shared_ptr<hb_set_t>> m;
|
||||
|
||||
m.get (hb::shared_ptr<hb_set_t> ());
|
||||
m.get (hb::shared_ptr<hb_set_t> (hb_set_get_empty ()));
|
||||
m.iter ();
|
||||
m.keys ();
|
||||
|
@ -202,11 +200,9 @@ main (int argc, char **argv)
|
|||
m.values_ref ();
|
||||
}
|
||||
/* Test hb::unique_ptr. */
|
||||
hb_hash (hb::unique_ptr<hb_set_t> ());
|
||||
{
|
||||
hb_hashmap_t<hb::unique_ptr<hb_set_t>, hb::unique_ptr<hb_set_t>> m;
|
||||
|
||||
m.get (hb::unique_ptr<hb_set_t> ());
|
||||
m.get (hb::unique_ptr<hb_set_t> (hb_set_get_empty ()));
|
||||
m.iter_ref ();
|
||||
m.keys_ref ();
|
||||
|
|
Loading…
Reference in New Issue