From 1fa1eaa0c1d5f8e9f16c771c92170fe8e83a313c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 30 Aug 2018 20:00:10 +0100 Subject: Use string_view instead of string where string-like is required --- libadhocutil/detail/compileTimeFormatters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 - 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...); -- cgit v1.2.3