Closed GoogleCodeExporter closed 9 years ago
Wow, this sample program is broken in so many ways. However, the brokenness
that
causes this particular assertion failure, is that you've declared every sample
to be
equal to every other. This means when you insert n, you are inserting an item
that
is "equal" to the empty key, which is not allowed by the dense_hash_set API.
Original comment by csilv...@gmail.com
on 27 Feb 2009 at 6:59
Ok, so the assertion comes from my hash function and equal operator that are not
really define. By adding suitable hash and operator, it works. Thanks a lot.
Original comment by ory...@gmail.com
on 27 Feb 2009 at 7:07
Original issue reported on code.google.com by
ory...@gmail.com
on 27 Feb 2009 at 6:39Attachments: