Comments (2)
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 [email protected]
on 27 Feb 2009 at 6:59
- Changed state: Invalid
- Added labels: Priority-Medium, Type-Defect
from sparsehash.
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 [email protected]
on 27 Feb 2009 at 7:07
from sparsehash.
Related Issues (20)
- HArray VS dense_hash_map
- google::dense_hash_map <string, int> m_wordCount is failed when m_wordCount[str] += 1; on running time HOT 3
- Dense hash map hangs(assert in debug) when find() on non-existent HOT 3
- Build fails on OS X when `google/malloc_extension.h` exists but `-ltcmalloc` doesn't
- Move assignment operator not implemented
- sparseconfig.h should not vary based on C++11 capability
- configure.ac has wrong version number HOT 1
- Add CMake support HOT 2
- class-memaccess warning when compiling with GCC 8 or later HOT 2
- Compilation failure with visual studio /permissive- flag HOT 1
- macOS 10.13.6 installation: cannot run C++ compiled programs HOT 11
- can't find file sparsehash/internal/sparseconfig.h HOT 2
- New release ? HOT 2
- Future automake requires subdir-objects
- Assertion `settings.use_empty()' failed.
- sparsehash 2.0.4 compiled with gcc 11.2 in c++2b mode segfaults on libc_allocator_with_realloc
- sparsetable indexed assignment HOT 1
- error to make sparsehash-2.0.4 HOT 3
- when i try to complie it in vs2015 it show this error HOT 1
- When I try to compile someone else's project,it show this error.I use vcpkg to install sparsehash.thank you HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparsehash.