From 00aba02378ac8be31eb00ee61a8f45997b2d74c0 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Thu, 23 Oct 2025 19:36:55 +0200 Subject: fix: use string for filenames --- 2016/src/day01.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2016/src/day01.cpp') diff --git a/2016/src/day01.cpp b/2016/src/day01.cpp index f5d74a5..6e5b720 100644 --- a/2016/src/day01.cpp +++ b/2016/src/day01.cpp @@ -30,7 +30,7 @@ split(string_view line, string_view delimiter) } vector> -read_file(string_view filename) +read_file(const string& filename) { fstream input{ filename }; string content{ istreambuf_iterator{ input }, istreambuf_iterator{} }; -- cgit v1.3