diff --git a/include/emp/io/File.hpp b/include/emp/io/File.hpp index 70345f4106..0d59974cae 100644 --- a/include/emp/io/File.hpp +++ b/include/emp/io/File.hpp @@ -442,14 +442,16 @@ namespace emp { } // Get a block of lines, ending when a condition is met. - emp::vector ReadUntil(auto test_fun) { + template + emp::vector ReadUntil(T test_fun) { auto out = file.ReadUntil(line, test_fun); line += out.size(); return out; } // Get a block of lines for as lone as a condition is met. - emp::vector ReadWhile(auto test_fun) { + template + emp::vector ReadWhile(T test_fun) { auto out = file.ReadWhile(line, test_fun); line += out.size(); return out;