From 66b1fa35177145ce3b3a032aacc2bcd79f586f64 Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Thu, 18 Apr 2024 16:29:37 -0400 Subject: [PATCH] Replace auto in sig with template type --- include/emp/io/File.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;