Compilation error
Hi, When trying to compile I am getting following errors:
~/git/ctriepp/ctriepp [162722]% make
c++ -std=c++17 -march=native -O3 -DNDEBUG -lcityhash -o c_trei_pp main.cpp
In file included from main.cpp:6:
In file included from ./CTriePP.hpp:7:
./AlphabetAwareZFastTrie.hpp:19:53: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing]
template <typename Value, const Value EMPTY_VALUE = -1>
^
./CTriePP.hpp:18:45: note: while checking a default template argument used here
typedef AlphabetAwareZFastTrie<NodeIndex> MicroTrie;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:47:28: note: in instantiation of template class 'ctriepp::CTriePP<bool, false>' requested here
ctriepp::CTriePP<bool> trie;
^
1 error generated.
make: *** [c_trei_pp] Error 1
This is on MacOS Monterey. When I change the offending -1 to 0, then compilation succeeds, but I get error when running it:
~/git/ctriepp/ctriepp [164032]% ./c_trei_pp ~/data/geographic_names
text file : /Users/arun/data/geographic_names
texts size : 7308054
construction time 9835 [millisec]
[ERROR] !Kheis