--- mimetic-0.8.9/mimetic/utils.h.gcc41 2005-03-07 16:35:08.000000000 +0100
+++ mimetic-0.8.9/mimetic/utils.h 2005-12-25 22:56:59.000000000 +0100
@@ -56,13 +56,6 @@
* returns an Iterator pointing at the first character of the found pattern
* or \p eit if the search fails
*/
-template<typename Iterator>
-Iterator find_bm(Iterator bit, Iterator eit, const std::string& word)
-{
- return find_bm(bit, eit, word,
- typename std::iterator_traits<Iterator>::iterator_category());
-}
-
// find_bm specialization for random access iterators
template<typename Iterator>
Iterator find_bm(Iterator bit, Iterator eit, const std::string& word, const std::random_access_iterator_tag&)
@@ -94,6 +87,13 @@
return bit + i + 1;
}
+template<typename Iterator>
+Iterator find_bm(Iterator bit, Iterator eit, const std::string& word)
+{
+ return find_bm(bit, eit, word,
+ typename std::iterator_traits<Iterator>::iterator_category());
+}
+
} // ns utils