-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GCMapAllocator not being used #369
Conversation
Thank you for your pull request. We require contributors to agree to our Contributor License Agreement (https://exaloop.io/cla.txt), and we don't have @seanfarley on file. In order for us to review and merge your code, please email info@exaloop.io to get yourself added. |
8e78c05
to
332ef12
Compare
Thank you for your pull request. We require contributors to agree to our Contributor License Agreement (https://exaloop.io/cla.txt), and we don't have @seanfarley on file. In order for us to review and merge your code, please email info@exaloop.io to get yourself added. |
Should be able to run the CI now... |
332ef12
to
db63c1b
Compare
db63c1b
to
42ad9ab
Compare
Previously, the GCMapAllocator specified the wrong template arguments and, thus, would not actually be used. This can be verified by the fact that `GCMapAllocator::deallocate` used an undefined symbol: `seq_gc_free`. C++20 makes this an error like so: ``` error: static assertion failed due to requirement 'is_same<GCMapAllocator<std::pair<seq_str_t, long long>, re2::RE2>, GCMapAllocator<std::pair<const std::pair<seq_str_t, long long>, re2::RE2>, re2::RE2>>::value': [allocator.requirements] states that rebinding an allocator to the same type should result in the original allocator static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits, value_type> >::value, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. ``` This patch fixes the undefined symbol of `seq_gc_free` with `seq_free` along with fixing `<Key, Value>` -> `<std::pair<Key, Value>>`.
42ad9ab
to
4d5410a
Compare
I just pushed a small fixup for compiling on linux (I think an issue with libstdc+). Sorry for missing this the first time. |
Thanks @seanfarley! I'll go ahead and merge this. |
Previously, the GCMapAllocator specified the wrong template arguments and, thus, would not actually be used. This can be verified by the fact that
GCMapAllocator::deallocate
used an undefined symbol:seq_gc_free
.C++20 makes this an error like so:
This patch fixes the undefined symbol of
seq_gc_free
withseq_free
along with fixing<Key, Value>
-><std::pair<Key, Value>>
.