refactor: backport to MinGW 11

This commit is contained in:
Michael Mandl 2024-03-23 13:43:58 +01:00
parent 1441a869c2
commit 961a6bdf6c
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 16 additions and 4 deletions

View file

@ -8,9 +8,11 @@
class SearchTreeNode {
private:
WordRefList words_;
std::unordered_map<char, SearchTreeNode> children_;
std::unordered_map<char, SearchTreeNode *> children_;
public:
~SearchTreeNode();
void insert(std::string_view partial_word, const std::string *original_word);
const SearchTreeNode *find(std::string_view search_term) const;