From 4fbc9bdbd5e4733c1bd8fb036c2087c5867f493f Mon Sep 17 00:00:00 2001 From: deniskovalchuk Date: Sat, 16 Sep 2023 03:42:56 +0300 Subject: [PATCH] Do not use std::string_view for the filename variable --- example/download_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/download_file.cpp b/example/download_file.cpp index 879b0d0..944522f 100644 --- a/example/download_file.cpp +++ b/example/download_file.cpp @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) { try { - constexpr std::string_view filename = "favicon.ico"; + const char *filename = "favicon.ico"; std::ofstream ofs(filename, std::ofstream::binary | std::ofstream::trunc);