From 0e767bec5ef9de7873949638eca4b6375d40add9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 19 Jul 2021 23:03:25 +0100 Subject: Move constructable PqConn --- lib/output/pq/pqConn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/output/pq/pqConn.h b/lib/output/pq/pqConn.h index 6ee6dc0..dad0e1a 100644 --- a/lib/output/pq/pqConn.h +++ b/lib/output/pq/pqConn.h @@ -26,6 +26,7 @@ namespace MyGrate::Output::Pq { static constexpr auto paramMode {ParamMode::DollarNum}; explicit PqConn(const char * const str); + explicit PqConn(PqConn &&) = default; virtual ~PqConn() = default; void query(const char * const) override; @@ -46,7 +47,7 @@ namespace MyGrate::Output::Pq { static void notice_processor(void *, const char *); virtual void notice_processor(const char *) const; - std::unique_ptr const conn; + std::unique_ptr conn; friend class PqPrepStmt; std::map> stmts; -- cgit v1.2.3