From 3c651cfc3f67090c46506e6feffc35c3ac91baee Mon Sep 17 00:00:00 2001 From: Joseph Edwards Date: Mon, 27 May 2024 18:22:36 +0100 Subject: [PATCH] Template traverse_word --- include/libsemigroups/aho-corasick.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libsemigroups/aho-corasick.hpp b/include/libsemigroups/aho-corasick.hpp index 188c6be0e..a94097a48 100644 --- a/include/libsemigroups/aho-corasick.hpp +++ b/include/libsemigroups/aho-corasick.hpp @@ -786,9 +786,10 @@ namespace libsemigroups { //! w.cend())` //! //! \sa \ref traverse_word. + template [[nodiscard]] inline index_type traverse_word(AhoCorasick const& ac, index_type start, - word_type const& w) { + Word const& w) { return traverse_word(ac, start, w.cbegin(), w.cend()); }