summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/detail/compileTimeFormatters.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/detail/compileTimeFormatters.h b/libadhocutil/detail/compileTimeFormatters.h
index 898b679..3b12ea9 100644
--- a/libadhocutil/detail/compileTimeFormatters.h
+++ b/libadhocutil/detail/compileTimeFormatters.h
@@ -102,7 +102,7 @@ namespace AdHoc {
};
StreamWriterT('.', '*', 's') {
template<typename ... Pn>
- static inline void write(stream & s, int l, const std::string & p, const Pn & ... pn)
+ static inline void write(stream & s, int l, const std::string_view & p, const Pn & ... pn)
{
s << p.substr(0, l);
StreamWriter::next(s, pn...);