Hi, I wanted to use multiple of rle_str, but I get segmentation fault when constructing the vector. Here is MWE:
#include <dynamic.hpp>
using namespace std;
using namespace dyn;
int main() {
vector<rle_str> strs(2,rle_str(5));
return 0;
}
Reproduced the bug on both clang-8 and gcc-8.
When constructing without the specified alphabet size vector<rle_str> strs(2) everything works fine.
What is strange that this pointer is NULL which was assigned in node(const node& other) constructor.
Thank you for the effort of creating this library.
Jan
Hi, I wanted to use multiple of rle_str, but I get segmentation fault when constructing the vector. Here is MWE:
Reproduced the bug on both clang-8 and gcc-8. When constructing without the specified alphabet size
vector<rle_str> strs(2)
everything works fine. What is strange thatthis
pointer isNULL
which was assigned innode(const node& other)
constructor.Thank you for the effort of creating this library. Jan
Stacktrace: