Closed h00shi closed 5 years ago
Thanks for reporting that! I'll change it from a variable length array to a dynamically allocated one.
Thank you for your quick reply and fixing the problem. There is still one issue about the fix.
I think it should be
std::unique_ptr<luint_t[]> buf = std::unique_ptr<luint_t[]>(new luint_t[m_buf_edges]);
rather than
std::unique_ptr<luint_t> buf = std::unique_ptr<luint_t>(new luint_t[m_buf_edges]);
Otherwise, it would cause the same issue as #9.
Hi,
you are - again - absolutely right! Thanks, I've just pushed that update. Sorry for the delay, though.
Thank you for the fix.
Hi,
In the file
mapmap_cpu/mapmap/source/tree_sampler_instances/lock_free_tree_sampler.impl.h
line475
a variable length array has been defined:luint_t buf[m_buf_edges];
This is fine when compiling with gcc, but on MSVC it seems to cause compilation errors.Maybe changing
const luint_t m_buf_edges = 4;
tostatic constexpr luint_t m_buf_edges = 4;
inlock_free_tree_sampler.h
can help.Thanks