People who code: we want your input. Take the Survey
1

While @Toby has properly removed the need for a custom ctor, you should still add a custom dtor to avoid recursion when destroying the trie: ~Trie(){ auto comp = [](auto&&, auto&&){ return std::false_type(); }; std::multimap<char, std::unique_ptr<Node>, decltype(comp)> x(comp); // All elements are equal to minimize ...


Only top voted, non community-wiki answers of a minimum length are eligible