diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-10-23 19:36:55 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-10-23 19:36:55 +0200 |
| commit | 00aba02378ac8be31eb00ee61a8f45997b2d74c0 (patch) | |
| tree | 5c33ff34e2c6c92a40a8403795404ad12eb6f7b5 /2016/src/day01.cpp | |
| parent | ae1e96f10b399266825e275ca4a8100ceede9cad (diff) | |
| download | advent-of-code-00aba02378ac8be31eb00ee61a8f45997b2d74c0.tar.gz advent-of-code-00aba02378ac8be31eb00ee61a8f45997b2d74c0.tar.bz2 advent-of-code-00aba02378ac8be31eb00ee61a8f45997b2d74c0.zip | |
fix: use string for filenames
Diffstat (limited to '2016/src/day01.cpp')
| -rw-r--r-- | 2016/src/day01.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | vector<tuple<char, long>> | 32 | vector<tuple<char, long>> |
| 33 | read_file(string_view filename) | 33 | read_file(const string& filename) |
| 34 | { | 34 | { |
| 35 | fstream input{ filename }; | 35 | fstream input{ filename }; |
| 36 | string content{ istreambuf_iterator<char>{ input }, istreambuf_iterator<char>{} }; | 36 | string content{ istreambuf_iterator<char>{ input }, istreambuf_iterator<char>{} }; |
