From 36d1ebb68359d7faa194a1f62c17011b462a3a1f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Feb 2019 16:56:59 +0000 Subject: Switch to string_view --- libpqpp/pq-command.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpqpp/pq-command.h') diff --git a/libpqpp/pq-command.h b/libpqpp/pq-command.h index c2674eb..a26bae8 100644 --- a/libpqpp/pq-command.h +++ b/libpqpp/pq-command.h @@ -43,6 +43,7 @@ namespace PQ { void bindParamF(unsigned int, float) override; void bindParamS(unsigned int, const Glib::ustring&) override; + void bindParamS(unsigned int, const std::string_view&) override; void bindParamT(unsigned int, const boost::posix_time::time_duration &) override; void bindParamT(unsigned int, const boost::posix_time::ptime &) override; @@ -59,7 +60,7 @@ namespace PQ { void paramsAtLeast(unsigned int); template void paramSet(unsigned int, const char * fmt, const T & ... t); - void paramSet(unsigned int, const std::string &); + void paramSet(unsigned int, const std::string_view &); std::vector values; std::vector lengths; std::vector formats; -- cgit v1.2.3