summaryrefslogtreecommitdiffstats
path: root/src/lib/util/corefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/corefile.h')
-rw-r--r--src/lib/util/corefile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/util/corefile.h b/src/lib/util/corefile.h
index d286cb866ac..3af0bddafb6 100644
--- a/src/lib/util/corefile.h
+++ b/src/lib/util/corefile.h
@@ -20,6 +20,7 @@
#include <cstdint>
#include <memory>
#include <string>
+#include <string_view>
namespace util {
@@ -111,7 +112,7 @@ public:
virtual std::uint32_t write(const void *buffer, std::uint32_t length) = 0;
// write a line of text to the file
- virtual int puts(const char *s) = 0;
+ virtual int puts(std::string_view s) = 0;
// printf-style text write to a file
virtual int vprintf(util::format_argument_pack<std::ostream> const &args) = 0;