diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-30 20:00:10 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-30 20:00:10 +0100 |
commit | 1fa1eaa0c1d5f8e9f16c771c92170fe8e83a313c (patch) | |
tree | 33657c7a5fcc7aceef89b6b123c1568027f21827 | |
parent | Fix flagconv setfill (diff) | |
download | libadhocutil-1fa1eaa0c1d5f8e9f16c771c92170fe8e83a313c.tar.bz2 libadhocutil-1fa1eaa0c1d5f8e9f16c771c92170fe8e83a313c.tar.xz libadhocutil-1fa1eaa0c1d5f8e9f16c771c92170fe8e83a313c.zip |
Use string_view instead of string where string-like is required
-rw-r--r-- | libadhocutil/detail/compileTimeFormatters.h | 2 |
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...); |