From cd5ab761e5a0db0475a20a37566a0175f91d9129 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jul 2021 20:43:23 +0100 Subject: Prevent move and copy of WritePqCopyStream --- lib/output/pq/updateDatabase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp index b8e27ba..1dab95e 100644 --- a/lib/output/pq/updateDatabase.cpp +++ b/lib/output/pq/updateDatabase.cpp @@ -98,6 +98,12 @@ namespace MyGrate::Output::Pq { } struct WritePqCopyStream { + explicit WritePqCopyStream(FILE * o) : out {o} { } + WritePqCopyStream(const WritePqCopyStream &) = delete; + WritePqCopyStream(WritePqCopyStream &&) = delete; + WritePqCopyStream & operator=(const WritePqCopyStream &) = delete; + WritePqCopyStream & operator=(WritePqCopyStream &&) = delete; + ~WritePqCopyStream() { fputc('\n', out); -- cgit v1.2.3