Skip to content
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

Missing has_first_bit method #1

Open
jorisgeer opened this issue Nov 1, 2024 · 1 comment
Open

Missing has_first_bit method #1

jorisgeer opened this issue Nov 1, 2024 · 1 comment

Comments

@jorisgeer
Copy link

When compiling on linux-64, a 'has_first_bit method is missing on a mask_type

cd micromalloc
cmake .
make

[  1%] Building CXX object CMakeFiles/micro.dir/micro/internal/allocator.cpp.o
In file included from /home/joris/src/micromalloc-main/micro/internal/allocator.cpp:35:
/home/joris/src/micromalloc-main/micro/internal/allocator.hpp: In member function ‘bool micro::detail::RadixTree::has_small_free_chunks() const’:
/home/joris/src/micromalloc-main/micro/internal/allocator.hpp:500:100: error: ‘const micro::detail::RadixTree::mask_type’ {aka ‘const struct micro::detail::UIntN_32bits<4>’} has no member named ‘has_first_bit’
  500 |                         ALLOCATOR_INLINE bool has_small_free_chunks() const noexcept { return mask.has_first_bit(); }
      |                                                                                                    ^~~~~~~~~~~~~

@Thermadiag
Copy link
Owner

Hi,
Sorry for the last answer, this should be corrected now.
However it seems that you are compiling in 32 bits..
Bests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants